FIX: page scroll lock not clearing properly on chrome

For some reason Chrome renamed "mousewheel" to "wheel"
This commit is contained in:
Sam 2017-05-08 09:50:07 -04:00
parent 257c0dea70
commit a7471fe85f
1 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,12 @@ export default class LockOn {
}, 50);
$('body,html').off(SCROLL_EVENTS).on(SCROLL_EVENTS, e => {
if ( e.which > 0 || e.type === "mousedown" || e.type === "mousewheel" || e.type === "touchmove") {
if ( e.which > 0 ||
e.type === "mousedown" ||
e.type === "mousewheel" ||
e.type === "touchmove" ||
e.type === "wheel"
) {
this.clearLock(interval);
}
});