tauri: remove pinch-to-zoom on window
This commit is contained in:
parent
5218e7a546
commit
2f6ca958fe
1 changed files with 5 additions and 0 deletions
|
|
@ -89,6 +89,11 @@ const platform: Platform = {
|
||||||
|
|
||||||
createMenu()
|
createMenu()
|
||||||
|
|
||||||
|
// Stops mousewheel events from reaching Tauri's pinch-to-zoom handler
|
||||||
|
root?.addEventListener("mousewheel", (e) => {
|
||||||
|
e.stopPropagation()
|
||||||
|
})
|
||||||
|
|
||||||
render(() => {
|
render(() => {
|
||||||
return (
|
return (
|
||||||
<PlatformProvider value={platform}>
|
<PlatformProvider value={platform}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue