Skip to content

Commit 93cccd2

Browse files
committed
Clipper: bunch of rework. (#3841, #1725)
- Focused/NavId now always included in display range. - Any number of steps (while preserving zero-alloc policy). - Non contiguous ranges for nav processing - Moved new fields internally (+ moved StepNo away from sight so it doesn't get missused). - Generally tweaks/refactors.
1 parent cd1b5f7 commit 93cccd2

File tree

4 files changed

+194
-147
lines changed

4 files changed

+194
-147
lines changed

docs/CHANGELOG.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ Other Changes:
4141
- Added IsMouseTripleClicked() function. Tracking multi-click count in IO structure. (#3229) [@kudaba]
4242
- Modals: fixed issue hovering popups inside a child inside a modal. (#4676, #4527)
4343
- Fixed IsWindowFocused()/IsWindowHovered() issues with childs inside popups. (#4676)
44-
- Clipper: Fixed content height declaration slightly mismatching the one of when not using a clipper.
44+
- Clipper: currently focused item is automatically included in clipper range.
45+
Fixes issue where e.g. drag and dropping an item and scrolling ensure the item source location is
46+
still submitted. (#3841, #1725) [@GamingMinds-DanielC, @ocornut]
47+
- Clipper: rework so gamepad/keyboard navigation doesn't create spikes in number of items requested
48+
by the clipper to display. (#3841)
49+
- Clipper: Fixed content height declaration slightly mismatching the value of when not using a clipper.
4550
(an additional ItemSpacing.y was declared, affecting scrollbar range).
4651
- Nav: pressing PageUp/PageDown/Home/End when in Menu layer automatically moves back to Main layer.
4752
- Nav: fixed resizing window from borders setting navigation to Menu layer.

0 commit comments

Comments
 (0)