You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
- `winit::event::WindowEvent::MouseWheel::phase` is not exposed
through`bevy_input::mouse::MouseWheel`.
- I hit this when mapping bevy mouse wheel events to `egui`, which
expects a touch phase parameter.
## Solution
- Add `bevy_input::mouse::MouseWheel::phase`.
- For completeness, also add
`bevy_picking::pointer;:PointerAction::Scroll::phase` and
`bevy_picking::events::Scroll::phase`.
## Testing
- `cargo run --example mouse_input_events` with a touch pad and without.
- Observed the `Started`, `Moved` and `Ended` phases showing up
properly.
---
## Future Work
The gesture types should also have `TouchPhase` exposed on them, but
doing so turns this PR quite a bit larger, so I've left them out.
0 commit comments