Skip to content

Tree view scrolling and scrollbars is buggy #10

@nyanpasu64

Description

@nyanpasu64

Setup: Install Cargo UI 0.2.0 using cargo install cargo-ui or checking out master (38ca410) and cargo run [--release]. Click "Show Dependencies".

I'm on Linux using a clicky non-continuous wheel mouse.

Stale scrollbar size

If you scroll with the mouse wheel and change the width of the widest visible row, the width of the horizontal scrollbar doesn't update (remaining 1 scroll behind) until you drag the vertical scrollbar, or scroll again (which updates the scrollbar width to the previous widest visible element, again remaining 1 scroll behind).

Similarly, if you expand or contract a tree element, the scrollbar size doesn't update until you scroll the wheel or drag a scrollbar.

(On 0.2.0, the scrollbar size always corrects itself in half a second. On git master, the scrollbar doesn't correct itself until you explicitly scroll.)

Scroll past end

If you drag the scrollbar to the end of the list, then wheel up and down, you end up 16 pixels or so below the end of the list. Scrolling down again puts you below the end of the list. Dragging the scrollbar doesn't cause these issues. (This occurs on master, not 0.2.0.)

Scroll position not clamped in-bounds on content changes

Collapsing a tree view element can cause the scroll position to show white space. Dragging the scrollbar (even horizontal) causes the page to scroll up to hide the white space (as long as it doesn't expose white space above the first element).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions