mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
## Summary On Linux (Wayland and X11), tablet stylus side buttons arrive as winit MouseButton::Other (BTN_STYLUS and neighbours). egui-winit ignores those codes, so barrel presses never reached the canvas. Run the desktop app through a thin winit ApplicationHandler wrapper on Linux that remaps barrel buttons to right and middle mouse buttons before eframe handles the event. ## Tests cargo test -p vectorcraft linux_stylus cargo clippy -p vectorcraft --all-targets -- -D warnings Closes storytold/vectorcraft#3632 Co-authored-by: nrq6993-a11y <nrq6993-a11y@users.noreply.github.com>