emilk / emilk/egui

scroll_to_me() scrolls all ScrollAreas

Open
#985 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 12h
Merged PRs (30d)
67

Description

**Is your feature request related to a problem? Please describe.**
When using ```Response::scroll_to_me()```, all scroll bars in the entire UI scroll in that direction. This is quite frustrating for a user when you have multiple scrollable areas.

**Describe the solution you'd like**
When calling ```scroll_to_me```, it could either contextually figure out which ScrollArea it is inside, or, optionally you could pass in a ScrollArea id or set of ids.

**Describe alternatives you've considered**
Scrolling that ScrollArea manually,

**Additional context**
I first suspected this was a bug, but I gave the code a quick glance, and it seems this is the expected behavior, though I may have read it wrong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.