microsoft-ui-xaml icon indicating copy to clipboard operation
microsoft-ui-xaml copied to clipboard

AnnotatedScrollBar slides off screen

Open gi-b716 opened this issue 1 year ago • 3 comments

Which version of the app?

WinUI 3 Gallery

Description

In WinUi3 Gallery's AnnotatedScrollBar demo, when the window is not maximized, dragging the slider outside of the window allows it to continue to move

Screenshots

https://github.com/user-attachments/assets/d065d3d4-176d-4127-9eea-0a72cf4577bc

Windows version

Windows 11 23H2 (22631)

Additional context

No response

### Tasks

gi-b716 avatar Jul 19 '24 15:07 gi-b716

This looks like an issue with AnnotatedScrollBar. Transferring issue to microsoft-ui-xaml repo.

karkarl avatar Jul 25 '24 18:07 karkarl

It seems to be normal to be able to drag scrollviewer in the same pointer event even when the mouse has left the window boundaries. It seems the issue is with the height of the scrollviewer not adapting to the height of the window, since it's a scrollviewer in scrollviewer scenario in WinUI-Gallery. This is poor design in general cases, but makes sense for the gallery scenario.

The question is if this is an issue with all scrollviewer controls, or if it's by design.

karkarl avatar Jul 25 '24 18:07 karkarl

I would say this is expected behaviour personally and present on all scroll controls - i.e, the scrollbar captures the pointer and lets you continue scroll even if not directly touching it, partly to improve usability because of how thin the scrollbar can be.

JohnnyWestlake avatar Jul 30 '24 07:07 JohnnyWestlake

Yes. This is by design.

ranjeshj avatar Sep 04 '24 15:09 ranjeshj