mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-24 06:45:22 +00:00
tauri: remove pinch-to-zoom on window
This commit is contained in:
committed by
Aiden Cline
parent
16b7e85256
commit
e88ef5b294
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user