tauri
tauri copied to clipboard
key states not set on onwheel event in Linux [bug]
Describe the bug
Previously I was able to get key state from javascript onwheel events. After updating my Arch Linux system it appears that this functionality is now missing. Trying the same code (see reproduction) in Chrome or Firefox still works just not in Tauri.
Reproduction
Put the following in the html, test on both Tauri, Chrome, and Firefox
<div onwheel="console.log('wheel', event.ctrlKey)" onclick="console.log('click', event.ctrlKey)">Test</div>
When holding "control" down expect the ctrlKey to be true when using scroll wheel on the word "Test". Found ctrlKey is false only on Tauri.
Expected behavior
onwheel event sets ctrlKey to true if control key held down. onclick works as expected.
Platform and versions
[✔] Environment
- OS: Arch Linux Rolling Release X64
✔ webkit2gtk-4.0: 2.40.1
✔ rsvg2: 2.56.0
✔ rustc: 1.68.2 (9eb3afe9e 2023-03-27)
✔ Cargo: 1.68.2 (6feb7c9cf 2023-03-26)
✔ rustup: 1.25.2 (17db695f1 2023-02-01)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 16.14.2
- pnpm: 7.1.6
- yarn: 1.22.15
- npm: 9.4.0
[-] Packages
- tauri [RUST]: 1.3.0
- tauri-build [RUST]: 1.2.1
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.1
- @tauri-apps/api [NPM]: not installed!
- @tauri-apps/cli [NPM]: 1.3.1
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../src/build
- devPath: http://localhost:8081/
Stack trace
No response
Additional context
No response