Skip to content

Commit

Permalink
delay unbind of scroll listener until close animation finish
Browse files Browse the repository at this point in the history
  • Loading branch information
andi34 committed Aug 22, 2020
1 parent cfed9f9 commit 2e51e12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,9 @@ var _isOpen,
_shout('bindEvents');
},
_unbindEvents = function () {
framework.unbind(window, 'resize scroll orientationchange', self);
setTimeout(function () {
framework.unbind(window, 'resize scroll orientationchange', self);
}, 400);
framework.unbind(window, 'scroll', _globalEventHandlers.scroll);
framework.unbind(document, 'keydown', self);
framework.unbind(document, 'mousemove', _onFirstMouseMove);
Expand Down

0 comments on commit 2e51e12

Please sign in to comment.