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
I am getting a strange error.
While using the script on mobile I get the following error in console.
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as
[Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as
This is on line 38 and 38 of the handwriting.canvas.js
Love the project by the way!
Great learning resources.
The text was updated successfully, but these errors were encountered:
Passive event listeners are a new feature in the DOM spec that enables developers to opt-in to better scroll performance by eliminating the need for scrolling to block on touch and wheel event listeners.
The warning you saw is suggesting to mark the touchstart and touchmove event handlers as passive to make the page more responsive.
Developers can annotate touch and wheel listeners with {passive: true} to indicate that they will never invoke preventDefault
However, in our case, we do invoke preventDefault because we want to capture the trace and draw it on the canvas instead of invoking the default behavior (scroll).
I'm closing this issue since it's not an error, but feel free to reopen if you see other issues.
Hi Chen,
I am getting a strange error.
While using the script on mobile I get the following error in console.
[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as
[Violation] Added non-passive event listener to a scroll-blocking 'touchmove' event. Consider marking event handler as
This is on line 38 and 38 of the handwriting.canvas.js
Love the project by the way!
Great learning resources.
The text was updated successfully, but these errors were encountered: