Skip to content

Commit

Permalink
fixes for loading gallery from different directories, firefox issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mnutt committed Nov 9, 2015
1 parent 190ac03 commit a3a27dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/mixins/directory/gallery.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Ember from 'ember';

export default Ember.Mixin.create({
directoryGallery: null,
galleryEnabled: false,

directoryGalleryItems: function() {
return this.get('model.sortedFiles').filter((file) => {
return file.get('type') === "image";
Expand All @@ -13,7 +14,7 @@ export default Ember.Mixin.create({

actions: {
slideshow: function() {
this.get('directoryGallery').init();
this.set('galleryEnabled', true);
}
}
});
5 changes: 5 additions & 0 deletions app/styles/file.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,8 @@
}
}
}

.pswp__zoom-wrap {
will-change: auto !important;
-webkit-backface-visibility: visible !important;
}
2 changes: 1 addition & 1 deletion app/templates/plugins/gallery.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{photo-swipe gallery=directoryGallery options=galleryOptions items=directoryGalleryItems}}
{{photo-swipe enabled=galleryEnabled options=galleryOptions items=directoryGalleryItems}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"ember-cli-ic-ajax": "0.2.1",
"ember-cli-inject-live-reload": "^1.3.0",
"ember-cli-moment-shim": "0.6.2",
"ember-cli-photoswipe": "git://github.com/mnutt/ember-cli-photoswipe.git#adb0aa1",
"ember-cli-photoswipe": "git://github.com/mnutt/ember-cli-photoswipe.git#f5bfce5",
"ember-cli-qunit": "0.3.15",
"ember-cli-release": "0.2.3",
"ember-cli-sass": "4.0.1",
Expand Down

0 comments on commit a3a27dc

Please sign in to comment.