Browse Source

Fixes multiple hide on scroll

1.0
jlukic 10 years ago
parent
commit
4fb6f80f7f
1 changed files with 4 additions and 4 deletions
  1. 8
      src/definitions/modules/popup.js

8
src/definitions/modules/popup.js

@ -668,12 +668,12 @@ $.fn.popup = function(parameters) {
close:function() {
if(settings.hideOnScroll) {
$document
.on('touchmove' + eventNamespace, module.hideGracefully)
.on('scroll' + eventNamespace, module.hideGracefully)
.one('touchmove' + eventNamespace, module.hideGracefully)
.one('scroll' + eventNamespace, module.hideGracefully)
;
$context
.on('touchmove' + eventNamespace, module.hideGracefully)
.on('scroll' + eventNamespace, module.hideGracefully)
.one('touchmove' + eventNamespace, module.hideGracefully)
.one('scroll' + eventNamespace, module.hideGracefully)
;
}
if(settings.on == 'click' && settings.closable) {

Loading…
Cancel
Save