From 4bc6981ca747ef0b96e969366ffe53c534114561 Mon Sep 17 00:00:00 2001 From: ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> Date: Mon, 25 Dec 2023 23:45:07 +0100 Subject: [PATCH] fix: dont show hover effects when touch scrolling --- common/modules/click.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/modules/click.js b/common/modules/click.js index a2d05a7e..4e67741f 100644 --- a/common/modules/click.js +++ b/common/modules/click.js @@ -76,6 +76,9 @@ export function hoverClick (node, [cb = noop, hoverUpdate = noop]) { lastHoverElement = hoverUpdate if (e.pointerType === 'mouse') hoverUpdate(false) }) + node.addEventListener('pointermove', e => { + if (e.pointerType === 'touch') hoverUpdate(false) + }) } const Directions = { up: 1, right: 2, down: 3, left: 4 }