microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.28k stars 675 forks source link

ScrollViewer: Users cannot hold the mouse wheel to pan #9818

Open abrown313 opened 2 months ago

abrown313 commented 2 months ago

Describe the bug

A common scroll interaction is holding the mouse wheel to pan vertically or horizontally. For example, the continuous scroll pattern used by websites or the click & drag pattern used by touch. WinUI 3 ScrollViewers only support vertical panning by scrolling the mouse wheel, clicking & dragging the scroll bar anchors, or hold & dragging with touch. Hold & drag is not supported with mouse (left button or mouse wheel hold).

Steps to reproduce the bug

  1. In an scroll/zoom enabled ScrollViewer (e.g. from the WinUI 3 Gallery), use Ctrl+Mouse Wheel to zoom in such that there is room to pan both vertically & horizontally
  2. Press & hold the mouse wheel over the zoomed content, drag the mouse in various directions

Expected behavior

The zoomed content pans within the ScrollViewer according to the direction of movement Actual behavior: nothing happens, content also cannot be panned by holding & dragging with the left mouse button

Screenshots

No response

NuGet package version

None

Windows version

No response

Additional context

No response

github-actions[bot] commented 2 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.