Skip to content

Commit

Permalink
fix: disable scrolling when dragging on canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
CalliEve committed Jun 5, 2024
1 parent d6e65d4 commit 6e3df80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ pub fn Canvas() -> impl IntoView {
on:touchmove=move |ev| on_mouse_move(&canvas_ref, &map_state, size, ev.as_ref())
on:touchcancel=move |_| on_mouse_out(&canvas_ref, &map_state, size)
id="canvas"
style="touch-action: none;"
class="object-contain"/>
</div>
}
Expand Down

0 comments on commit 6e3df80

Please sign in to comment.