DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.51k stars 787 forks source link

Wheel event is missing keyboard modifiers #2597

Closed kikijiki closed 2 months ago

kikijiki commented 3 months ago

Feature Request

To detect a pinch with the trackpad I think you need to check if the ctrl modifier is present during a wheel event. Currently that information doesn't seem to be available in the event data.

Implement Suggestion

Implement the ModifiersInteraction for WheelEvent too.

ealmloff commented 3 months ago

The web WheelEvent inherits from MouseEvent which has information about modifiers and the position of the event. We should implement PointerInteraction for WheelEvent