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

🪂 Disable drag_to_scroll on frame selection ScrollArea #207

Closed
wants to merge 2 commits into from

Conversation

tosti007
Copy link
Contributor

Checklist

  • I have read the Contributor Guide
  • I have read and agree to the Code of Conduct
  • I have added a description of my changes and why I'd like them included in the section below

Description of Changes

In the version 0.27 release of egui, the interaction handling was changed. This caused the frame selection in the frame graph to be unselectable. By disabling the drag_to_scroll on the related ScrollArea this issue is solved.

The latest frame selection does not suffer from this, as it does not use a ScrollArea.

Related Issues

@tosti007
Copy link
Contributor Author

Hm seems CI is hitting some unrelated linting errors, what should I do with those?

@emilk emilk closed this in #211 May 17, 2024
emilk pushed a commit that referenced this pull request May 17, 2024
### Checklist

* [x] I have read the [Contributor Guide](../CONTRIBUTING.md)
* [x] I have read and agree to the [Code of
Conduct](../CODE_OF_CONDUCT.md)
* [x] I have added a description of my changes and why I'd like them
included in the section below

### Description of Changes

This PR cancels the revert (#208) of egui 0.27.1 update (#201) and fix
the flamegraph interaction bug it introduced whenever the flamegraph's
scroll area was active.

### Related Issues

* Closes #207
* Closes #205
Hoodad pushed a commit that referenced this pull request Jun 28, 2024
Redo of #207

### Checklist

* [x] I have read the [Contributor Guide](../CONTRIBUTING.md)
* [x] I have read and agree to the [Code of
Conduct](../CODE_OF_CONDUCT.md)
* [x] I have added a description of my changes and why I'd like them
included in the section below

### Description of Changes
In the version `0.27` release of `egui`, the interaction handling was
changed. This caused the scope selection in the flamegraph to be
unselectable. By disabling the `drag_to_scroll` on the related
`ScrollArea` 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
- Fixes #205

```[tasklist]
### Tested on
- [x] Windows
- [x] Linux
- [x] Mac
- [x] Android
```
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.

🍳 puffin-egui: Incorrect flamegraph frame selection input handling
1 participant