You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Google changed the default behavior of touch listeners, now they are passive. The same thing in iOS/Safari since version 11.3. And as Google explains:
Registering the event listeners as passive tells the browser that the listeners will not call preventDefault() and the browser can safely perform scrolling and zooming without blocking on the listeners.
So you cannot call preventDefault inside passive event listener.
Solutions:
Set css property touch-action:none to body. Not supported by iOS/Safari.
Set passive property to false. var options = supports.passiveEvents ? { passive: false } : null;
After a recent Chrome update, the following error began occurring on mobile swipe:
The text was updated successfully, but these errors were encountered: