Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@emilk
Copy link
Owner

@emilk emilk commented Apr 24, 2021

This adds a new zoom_delta to input. This is hooked up to ctrl-scroll on egui_web and egui_glium.

Browsers convert trackpad pinch gestures to ctrl-scroll, so this means you can not pinch-to-zoom plots (on trackpad).

In the future we can support multitouch pinch-to-zoom via the same InputState::zoom_factor() function.

@quadruple-output You may wanna take a look at this as it relates to how InputState can have a common interface for pan/scroll and zoom events (related: #306).

@EmbersArc you may also wanna take a look. This PR will produce some minor merge conflicts for #331. Sorry about that! I rebased this branch

Tested with trackpad on mouse on mac in both browser and native.

This adds a new `zoom_delta` to input.
This is hooked up to ctrl-scroll on egui_web and egui_glium.

Browsers convert trackpad pinch gestures to ctrl-scroll,
so this means you can not pinch-to-zoom plots (on trackpad).

In the future we can support multitouch pinch-to-zoom via the same
`InputState::zoom_factor()` function
@emilk emilk merged commit c2744a1 into master Apr 25, 2021
@emilk emilk deleted the zoom-input branch April 25, 2021 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants