Skip to content

Commit a2632b9

Browse files
authored
Implement legend scrolling and update scroll capture behavior when zooming (epezent#504)
* Fully functional legend scrolling * refactor legend scroll capture * remove ImPlotFlags_NoChild scroll capturing in favor of ImGui::SetKeyOwner * change scroll capture behavior to only capture if scroll can be consumed * rev version, add note about removal of ImPlotFlags_NoChild
1 parent 18c7243 commit a2632b9

File tree

6 files changed

+215
-109
lines changed

6 files changed

+215
-109
lines changed

TODO.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ The list below represents a combination of high-priority work, nice-to-have feat
3131

3232
## Legend
3333

34-
- `ImPlotLegendFlags_Scroll`
3534
- improve legend icons (e.g. adopt markers, gradients, etc)
36-
- make legend frame use ButtonBehavior (maybe impossible)
35+
- generalize legend rendering for plots and subplots
36+
- add draggable scroll bar if users need it
3737

3838
## Tools / Misc.
3939

@@ -98,3 +98,5 @@ Ideally every `PlotX` function should use our faster rendering pipeline when it
9898
- add `PlotBarGroups` wrapper that makes rendering groups of bars easier, with stacked bar support
9999
- `PlotBars` restore outlines
100100
- add hover/active color for plot axes
101+
- make legend frame use ButtonBehavior
102+
- `ImPlotLegendFlags_Scroll` (default behavior)

0 commit comments

Comments
 (0)