Closed raphaelportmann closed 3 years ago
In some cases trying to cancel an event will fail with following error message: [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
It happens because the event is not cancelable. To fix this, check for e.cancelable before e.preventDefault(); in the following two locations: https://github.com/FL3NKEY/scroll-lock/blob/master/src/scroll-lock.js#L440 https://github.com/FL3NKEY/scroll-lock/blob/master/src/scroll-lock.js#L447
e.cancelable
e.preventDefault();
if(e.cancelable) { e.preventDefault(); }
https://www.npmjs.com/package/scroll-lock/v/2.1.5
In some cases trying to cancel an event will fail with following error message:
[Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted.
It happens because the event is not cancelable. To fix this, check for
e.cancelable
beforee.preventDefault();
in the following two locations: https://github.com/FL3NKEY/scroll-lock/blob/master/src/scroll-lock.js#L440 https://github.com/FL3NKEY/scroll-lock/blob/master/src/scroll-lock.js#L447