fix: improve mobile scrollbar visibility and resize handling

This commit is contained in:
2026-02-12 18:17:06 +01:00
parent 8327597e2e
commit a4681b5b97
6 changed files with 57 additions and 13 deletions

View File

@@ -43,21 +43,30 @@ const handlePointerDown = (e) => {
const now = Date.now();
if (now - lastTap < 300) {
// Double tap -> X (Force)
clearLongPress();
emit('start-drag', props.r, props.c, true, true);
lastTap = 0;
} else {
// Single tap / Start drag -> Fill
emit('start-drag', props.r, props.c, false, false);
lastTap = now;
// Start Long Press Timer
clearLongPress();
longPressTimer = setTimeout(() => {
if (navigator.vibrate) navigator.vibrate(50);
// Switch to Cross (Right click logic, force=true to overwrite the just-placed Fill)
emit('start-drag', props.r, props.c, true, true);
}, 500);
}
};
const handlePointerUp = (e) => {
// Handled in pointerdown
clearLongPress();
};
const handlePointerCancel = (e) => {
// Handled in pointerdown
clearLongPress();
};
</script>