Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

1.3.3

  • Loading branch information...
commit bfbbf7c846622ef91def3f23c9678ae497bdf0a9 1 parent 7a71834
@davidhellsing davidhellsing authored
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/themes/classic/galleria.classic.js
View
9 src/themes/classic/galleria.classic.js
@@ -24,7 +24,7 @@ Galleria.addTheme({
},
init: function(options) {
- Galleria.requires(1.28, 'This version of Classic theme requires Galleria 1.2.8 or later');
+ Galleria.requires(1.33, 'This version of Classic theme requires Galleria 1.3.3 or later');
// add some elements
this.addElement('info-link','info-close');
@@ -34,8 +34,7 @@ Galleria.addTheme({
// cache some stuff
var info = this.$('info-link,info-close,info-text'),
- touch = Galleria.TOUCH,
- click = touch ? 'touchstart' : 'click';
+ touch = Galleria.TOUCH;
// show loader & counter with opacity
this.$('loader,counter').show().css('opacity', 0.4);
@@ -49,7 +48,7 @@ Galleria.addTheme({
// toggle info
if ( options._toggleInfo === true ) {
- info.bind( click, function() {
+ info.bind( 'click:fast', function() {
info.toggle();
});
} else {
@@ -72,7 +71,7 @@ Galleria.addTheme({
$(e.thumbTarget).css('opacity',1);
}
} else {
- $(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).click( function() {
+ $(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6).bind('click:fast', function() {
$(this).css( 'opacity', 1 ).parent().siblings().children().css('opacity', 0.6);
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.