remove touch event listener which blocks scrolling
This commit is contained in:
@@ -119,18 +119,6 @@ header.bg-white.text-nls-black.relative(class="dark:text-white dark:bg-nls-black
|
|||||||
updateMousePosition(e.clientX, e.clientY);
|
updateMousePosition(e.clientX, e.clientY);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Touch events
|
|
||||||
this.canvas.addEventListener(
|
|
||||||
"touchmove",
|
|
||||||
(e) => {
|
|
||||||
e.preventDefault();
|
|
||||||
if (e.touches.length > 0) {
|
|
||||||
updateMousePosition(e.touches[0].clientX, e.touches[0].clientY);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{passive: false},
|
|
||||||
);
|
|
||||||
|
|
||||||
// Mouse enter/leave for graceful transitions
|
// Mouse enter/leave for graceful transitions
|
||||||
this.canvas.addEventListener("mouseenter", () => {
|
this.canvas.addEventListener("mouseenter", () => {
|
||||||
// Smooth entrance - no abrupt changes needed
|
// Smooth entrance - no abrupt changes needed
|
||||||
|
|||||||
Reference in New Issue
Block a user