mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
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()
|
||||
|
||||
// Stops mousewheel events from reaching Tauri's pinch-to-zoom handler
|
||||
root?.addEventListener("mousewheel", (e) => {
|
||||
e.stopPropagation()
|
||||
})
|
||||
|
||||
render(() => {
|
||||
return (
|
||||
<PlatformProvider value={platform}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue