-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow changing plot aspect ratio with scroll + cmd/ctrl + alt #2742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I generally agree with it but the logic seems flipped right now? When I go to the web demo, scroll + ctrl + alt
does an XY
zoom, while scroll + ctrl
does a X
-only zoom.
wait what? It's the opposite for me. When I go |
seems to be another instance of sticky modifiers on the web T_T |
Yeah actually I can confirm that CTRL has buggy sticky behavior on web, even outside the context of this PR. Sometimes the web viewer is just convinced that I'm pressing CTRL for seemingly no reason 🤷♂️ |
@teh-cmc so.. let's treat this as orthogonal and land this aging PR anyways? 🤔 On the flipside it makes sticky modifier problem worse |
I don't mind either way. In my case it makes the UX worse on Firefox but better on Chromium so maybe that's fine 🤷 |
more users asking for this, let's merge it and tackle the browser issue separately |
<!-- Open the PR up as a draft until you feel it is ready for a proper review. Do not make PR:s from your own `main` branch, as that makes it difficult for reviewers to add their own fixes. Add any improvements to the branch as new commits to make it easier for reviewers to follow the progress. All commits will be squashed to a single commit once the PR is merged into `main`. Make sure you mention any issues that this PR closes in the description, as well as any other related issues. To get an auto-generated PR description you can put "copilot:summary" or "copilot:walkthrough" anywhere. --> ### What Wanted Shift+Cmd originally, but egui no longer see this as a scroll then. Also, shift+scroll is already taken for translating along y. Fixes #2148 * #2148 https://github.com/rerun-io/rerun/assets/1220815/bc078094-4bae-4980-8508-af0cff234614 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2742) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2742) - [Docs preview](https://rerun.io/preview/pr%3Aandreas%2Fsingle-axis-plot-zoom/docs) - [Examples preview](https://rerun.io/preview/pr%3Aandreas%2Fsingle-axis-plot-zoom/examples)
<!-- Open the PR up as a draft until you feel it is ready for a proper review. Do not make PR:s from your own `main` branch, as that makes it difficult for reviewers to add their own fixes. Add any improvements to the branch as new commits to make it easier for reviewers to follow the progress. All commits will be squashed to a single commit once the PR is merged into `main`. Make sure you mention any issues that this PR closes in the description, as well as any other related issues. To get an auto-generated PR description you can put "copilot:summary" or "copilot:walkthrough" anywhere. --> ### What Wanted Shift+Cmd originally, but egui no longer see this as a scroll then. Also, shift+scroll is already taken for translating along y. Fixes #2148 * #2148 https://github.com/rerun-io/rerun/assets/1220815/bc078094-4bae-4980-8508-af0cff234614 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2742) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2742) - [Docs preview](https://rerun.io/preview/pr%3Aandreas%2Fsingle-axis-plot-zoom/docs) - [Examples preview](https://rerun.io/preview/pr%3Aandreas%2Fsingle-axis-plot-zoom/examples)
What
Wanted Shift+Cmd originally, but egui no longer see this as a scroll then. Also, shift+scroll is already taken for translating along y.
Fixes #2148
Screen.Recording.2023-07-18.at.16.06.29.mov
Checklist