microsoft / microsoft-ui-xaml

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

Shift clicking on scrollbar to scroll to that point only jumps down a bit #2971

Open Poopooracoocoo opened 4 years ago

Poopooracoocoo commented 4 years ago

Describe the bug

Shift clicking on scrollbar to scroll to that point only jumps down a bit

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Open XAML Controls Gallery
  2. Shift click on scrollbar

Expected behavior

jumps to where you clicked on

Screenshots

Version Info

NuGet package version:

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2020 Update (19041) Yes
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT

Additional context

jeez, these conscious scrollbars... at least it's not the scrollbar in task view. >.>

ranjeshj commented 4 years ago

Shift does not seem to do anything with the ScrollViewer, I see it only does the large scroll. Looking at Edge, it does support shift click which brings into view at that point. @RBrid as FYI.

anawishnoff commented 4 years ago

Thanks for filing this! @RBrid is the behavior described in the bug expected? I can't find anything about shift+click with ScrollViewer in the docs.

RBrid commented 4 years ago

@anawishnoff, I never heard of that shift-click behavior. This would be a ScrollBar feature (not a ScrollViewer one). It's basically a ScrollBar feature request.

Poopooracoocoo commented 4 years ago

@ranjeshj Wait which Edge? Are you referring to the EdgeHTML/UWP/legacy one? Well it, IE and most (maybe all?) win32 scrollbars, including Chromium's support this anyway. I believe that the old UWP scrollbars did too.

I usually do this to scroll back to the top of a document or to the very bottom. It's easier than dragging the thumb. Not all keyboards have dedicated home and end keys, especially on laptops. It saves having to take your hand off your trackpad.

Notepad has this menu when you right click on the scrollbar: image I don't remember when, but when I saw that I also learnt you could shift click.

ranjeshj commented 4 years ago

@Poopooracoocoo I see it in the Edge browser and notepad, but not any of the apps that use UWP XAML like XamlControlsGallery or Settings app. This looks like a missing feature in UWP XAML.

Felix-Dev commented 4 years ago

I just checked this in a test WPF app (a barebone WPF app simply including WPF's ScrollViewer) and can report that this feature (shift + click) is available in WPF by default. So yes, in my opinion this should be brought over to UWP XAML for feature parity with WPF and because it is a useful feature to have.

Poopooracoocoo commented 4 years ago

I'm pretty sure the old UWP XAML scrollbars had this before they were rewritten(i think) to be "conscious"/annoying.