Created attachment 139925 [details] Example of autoscrolling a PDF in Firefox SUMMARY It would be quite nice to have autoscrolling by middle clicking and controlling speed and direction with the cursor and not just by using 'shift-arrow keys'. Such an option is wonderful to have when browsing through large documents. STEPS TO REPRODUCE 1. Open a document in Okular 2. Middle click OBSERVED RESULT Nothing EXPECTED RESULT A symbol (see attachment) appears as a reference point and scrolls based on the cursors distance from it. SOFTWARE/OS VERSIONS KDE neon User edition 5.22 ADDITIONAL INFORMATION Apologies if this is more relevant to another part of the software stack, e.g. Qt. If so, then please point me to the right place.
> STEPS TO REPRODUCE > 1. Open a document in Okular > 2. Middle click > > OBSERVED RESULT > Nothing Is this description accurate? Okular should zoom in or out without discrete steps, that is what middle-click-and-drag is currently used for.
Ah, that is true. I wasn't aware that dragging the cursor while middle clicking would do that. However, a simple middle click will still not do anything. Perhaps it would then conflict with the zooming action to have autoscrolling as well?
What you described is middle-click-and-release-then-drag, instead of middle-click-and-drag, right? Now that I think about it again, I think that can be implemented both at the same time.
Yes, that's correct. Simply middle clicking enters an autoscrolling "mode" which allows you to scroll the page by moving the cursor until the next click. It seems however that autoscrolling can usually also be done by holding middle click and dragging, but of course that would conflict with zooming in the case of Okular. Perhaps it would still be fine to compromise between having both zooming and scrolling, however similar the actions to perform them are? I would certainly not mind and probably use both a lot, but I can't speak for everyone.
I Think adding autoscrolling support across all application i.e.(discord, document viewer, web browser.) would be great. I really don't like having to do hacky code just to get this feature. I don't know if x11 can support it, but I think wayland is the future, and can probably be implemented in the wayland kwin compositor.
I would also love to have this feature system-wide. It is basically the only thing I miss from Windows.
i second this. the current behavior (zooming with middle-click) differs from common UX behavior, as all(tm) other programs in the field of "working with documents" use middle-click-scrolling. whenever a UI/UX interaction differs from the commonly expected behavior, there should be an option to let the user choose the common behavior. this is not gnome. the new kde plasma system-wide middle-click-scroll option does not mitigate this problem as it behaves very uncommon on its own.
This would need to be implement in KWin.
Libinput supports on-button scrolling (middle click autoscroll) and it looks like Plasma 6.2 added libinput's on-button scrolling. https://www.phoronix.com/news/Plasma-6.2-Auto-Scrolling
(In reply to Axle from comment #9) > Libinput supports on-button scrolling (middle click autoscroll) and it looks > like Plasma 6.2 added libinput's on-button scrolling. On-button scrolling is not auto-scrolling. Auto-scrolling is automatic and moves the view continuously depending on the direction and distance where the pointer was clicked. On-button scrolling is a scroll-wheel emulation that translates movement, not position, to scroll events, and as such is not automatic - it's a direct response to immediate user input. Its primary purpose is to substitute for a scroll wheel on devices that do not have one. It's not intended to substitute for Windows-style auto-scrolling, so it's better to not use that term (and we don't do so in the mouse configuration page).
+1 this would be killer. The better the fundamental window and scrolling experience is, the more things KDE will have over windows. Not that windows does this any better, or at all.
I hope its added to the Okular soon, this feature is very compatible with muscle memory of other PDF Viewers. I know KDE added a MMB as Scroll in their Mouse settings, but that is a global change which messes up my browser and other apps.