Made most touch events passive

This commit is contained in:
thepaperpilot 2022-05-02 21:10:18 -05:00
parent 2c14b2193d
commit b82bf8eee3
5 changed files with 12 additions and 12 deletions

View file

@ -19,7 +19,7 @@
@mousedown="(e: MouseEvent) => mouseDown(e)"
@touchstart="(e: TouchEvent) => mouseDown(e)"
@mouseup="() => endDragging(dragging)"
@touchend="() => endDragging(dragging)"
@touchend.passive="() => endDragging(dragging)"
@mouseleave="() => endDragging(dragging)"
>
<svg class="stage" width="100%" height="100%">

View file

@ -46,9 +46,9 @@
@mouseenter="isHovering = true"
@mouseleave="isHovering = false"
@mousedown="mouseDown"
@touchstart="mouseDown"
@touchstart.passive="mouseDown"
@mouseup="mouseUp"
@touchend="mouseUp"
@touchend.passive="mouseUp"
>
<g v-if="shape === Shape.Circle">
<circle

View file

@ -9,9 +9,9 @@
@mousedown="start"
@mouseleave="stop"
@mouseup="stop"
@touchstart="start"
@touchend="stop"
@touchcancel="stop"
@touchstart.passive="start"
@touchend.passive="stop"
@touchcancel.passive="stop"
:class="{
feature: true,
clickable: true,

View file

@ -12,9 +12,9 @@
@mousedown="start"
@mouseleave="stop"
@mouseup="stop"
@touchstart="start"
@touchend="stop"
@touchcancel="stop"
@touchstart.passive="start"
@touchend.passive="stop"
@touchcancel.passive="stop"
>
<div v-if="title"><component :is="titleComponent" /></div>
<component :is="component" style="white-space: pre-line" />

View file

@ -11,9 +11,9 @@
@mousedown="start"
@mouseleave="stop"
@mouseup="stop"
@touchstart="start"
@touchend="stop"
@touchcancel="stop"
@touchstart.passive="start"
@touchend.passive="stop"
@touchcancel.passive="stop"
>
<div
:style="[