FIX: page scroll lock not clearing properly on chrome
For some reason Chrome renamed "mousewheel" to "wheel"
This commit is contained in:
parent
257c0dea70
commit
a7471fe85f
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue