Skip to content

Commit

Permalink
kill scrolling when panes are open
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonpecora committed Nov 16, 2015
1 parent ccf45d4 commit 4ad7167
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controllers/pane.js
Expand Up @@ -24,8 +24,12 @@ module.exports = function () {
}

function constructor(el) {
disableScroll();
dom.onRemove(el, enableScroll);
setTimeout(function () {
disableScroll();
// this needs to happen AFTER any onRemove event fires from a previous pane
// since we're switching between panes very quickly
}, 0);

this.el = el;
}
Expand Down

0 comments on commit 4ad7167

Please sign in to comment.