-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DeskTop: Improve scrolling in directory windows. Resolves #711
The previous scroll logic for windows made each increment 1/20th of the scroll range, which made scrolling down in windows without tons of icons absurdly slow. There were also numerous edge cases requiring hacky fixes, and spaghetti code throughout DeskTop to implement it. Rework scrolling entirely. A ScrollManager scope is introduced, which exposes a much simplified set of entry points - actions on the scrollbar (clicks or thumb moves) and adjusting the scrollbars following a content change or resize. Callers are also simplified/reworked. Specific behavior changes: * Scroll thumbs have full fidelity (up to 256 steps). * Scroll arrows move by roughly 1/2 the grid spacing, when in icon view. When in list view they scroll vertically by a single row. * Rows when in list view are now spaced out like list controls. * Scroll position is reset when switching from icon to list view. This ends up saving roughly 178 bytes.
- Loading branch information
1 parent
be9bbc0
commit 497ad03
Showing
6 changed files
with
628 additions
and
849 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.