-
Notifications
You must be signed in to change notification settings - Fork 79
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
🪂 Disable drag_to_scroll
on frame selection ScrollArea
#214
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.
You can check "Tested on Linux" (via cargo r -p puffin_egui --example eframe
). You're right that dragging only scrolls as soon as a scrollbar is necessary, never allowing to select frames anymore.
FYI I have found the source of the issue but I'm not well versed with egui yet to understand how to fix the issue, see #219. Not sure if we want this in if we can get the root issue resolved? |
@Hoodad the root cause is already highlighted in this PR description, I think. The solution is given here as well, all that is required is for this PR to be merged 😉 |
Hmm fair enough I didn't consider disabling the |
Okay I just now tested the change on Android as well and it works (the UI is a bit too cramped to use on a small screen) like on desktop you have to scroll by grabbing the scrollbar which I consider good enough. I wanted to get to the bottom with this and investigate an alternative solution that I got working that changes the logic inside |
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.
and testing on Windows this fix seems to work nicely here
@tosti007 can you or @MarijnS95 fix the merge conflict so we can have the change merged? |
Redo of #207
Checklist
Description of Changes
In the version
0.27
release ofegui
, the interaction handling was changed. This caused the scope selection in the flamegraph to be unselectable. By disabling thedrag_to_scroll
on the relatedScrollArea
this issue is solved.The latest scope selection does not suffer from this, as it does not use a
ScrollArea
.Note that this does not have any behavioral effect, but instead results in the same behavior of click/drag/scroll when on egui
0.26
!Related Issues
puffin-egui
: Incorrect flamegraph frame selection input handling #205Tested on