mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Disable right clicks on canvas (#295)
This commit is contained in:
parent
8b3c9ef7d0
commit
095d5fbbfb
@ -2,5 +2,6 @@ export const preventDefaultTouchActions = () => {
|
||||
document.body.querySelectorAll("canvas").forEach(canvas => {
|
||||
canvas.addEventListener("touchstart", e => e.preventDefault())
|
||||
canvas.addEventListener("touchmove", e => e.preventDefault())
|
||||
canvas.addEventListener("contextmenu", e => e.preventDefault())
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user