mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
tauri: remove pinch-to-zoom on window
This commit is contained in:
parent
5218e7a546
commit
2f6ca958fe
@ -89,6 +89,11 @@ const platform: Platform = {
|
||||
|
||||
createMenu()
|
||||
|
||||
// Stops mousewheel events from reaching Tauri's pinch-to-zoom handler
|
||||
root?.addEventListener("mousewheel", (e) => {
|
||||
e.stopPropagation()
|
||||
})
|
||||
|
||||
render(() => {
|
||||
return (
|
||||
<PlatformProvider value={platform}>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user