Skip to content
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

On Web, implement navigating back/forward with mouse buttons #5792

Merged
merged 2 commits into from Apr 4, 2024

Conversation

emilk
Copy link
Member

@emilk emilk commented Apr 4, 2024

What

By popular request

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

@emilk emilk added the 🕸️ web regarding running the viewer in a browser label Apr 4, 2024
@emilk emilk mentioned this pull request Apr 4, 2024
5 tasks
@emilk emilk requested a review from jprochazk April 4, 2024 15:38
@emilk emilk added 📺 re_viewer affects re_viewer itself include in changelog labels Apr 4, 2024
Copy link
Member

@jprochazk jprochazk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@emilk
Copy link
Member Author

emilk commented Apr 4, 2024

I assume that means you have tested it? (I have no mouse to test it with)

@Wumpf
Copy link
Member

Wumpf commented Apr 4, 2024

just tried it with my back/forward button blessed mouse and it works (firefox, mac)

@@ -1320,6 +1320,22 @@ impl eframe::App for App {
.add(egui_ctx.input(|i| i.time), seconds);
}

#[cfg(target_arch = "wasm32")]
Copy link
Member

@Wumpf Wumpf Apr 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually why not also on native 🤔
although tbf I would have expect those buttons to change selection in the selection history

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…which would be nice, but a different and bigger task

@emilk emilk merged commit 3d68b52 into main Apr 4, 2024
34 checks passed
@emilk emilk deleted the emilk/back-fwd-mouse-buttons branch April 4, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include in changelog 📺 re_viewer affects re_viewer itself 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants