diff --git a/src/scripts/multiselect.js b/src/scripts/multiselect.js index e9c60e2..7421def 100644 --- a/src/scripts/multiselect.js +++ b/src/scripts/multiselect.js @@ -159,7 +159,7 @@ multiselect.resize = function(e) { multiselect.stopResize = function() { - $(document).off('mousemove mouseup') + if (multiselect.position.top!==null) $(document).off('mousemove mouseup') } diff --git a/src/scripts/view.js b/src/scripts/view.js index 198a4fd..fe10eaa 100644 --- a/src/scripts/view.js +++ b/src/scripts/view.js @@ -309,9 +309,12 @@ view.photo = { $('body').css('overflow', 'hidden') // Fullscreen - $(document) - .bind('mouseenter', header.show) - .bind('mouseleave', header.hide) + var timeout + $(document).bind('mousemove', function() { + clearTimeout(timeout) + header.show() + timeout = setTimeout(header.hide, 500) + }) lychee.animate(lychee.imageview, 'fadeIn') @@ -329,8 +332,7 @@ view.photo = { // Disable Fullscreen $(document) - .unbind('mouseenter') - .unbind('mouseleave') + .unbind('mousemove') // Hide Photo lychee.animate(lychee.imageview, 'fadeOut')