Skip to content

Commit

Permalink
fix event listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
rejth committed May 21, 2024
1 parent 5c5b463 commit fe6f8fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ui/Canvas.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
bind:this={canvasRef}
bind:clientWidth={canvasWidth}
bind:clientHeight={canvasHeight}
on:touchstart={onClick}
on:touchmove={onMove}
on:touchstart|passive={onClick}
on:touchmove|passive={onMove}
on:mousedown={onClick}
on:mousemove={onMove}
on:pointerdown={onClick}
Expand Down Expand Up @@ -116,7 +116,7 @@
on:mouseout
on:mouseup
on:select
on:wheel
on:wheel|passive
on:drag
on:dragend
on:dragenter
Expand All @@ -126,8 +126,8 @@
on:drop
on:touchcancel
on:touchend
on:touchmove
on:touchstart
on:touchmove|passive
on:touchstart|passive
on:pointerover
on:pointerenter
on:pointerdown
Expand Down

0 comments on commit fe6f8fe

Please sign in to comment.