Bug 416633

Summary: Middle-click+drag to scroll
Product: [Applications] dolphin Reporter: Xeno Idaltu <xenoidaltu>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: aldrintadas19, dolphin-bugs-null, nate, postix
Priority: NOR    
Version First Reported In: 17.12.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Xeno Idaltu 2020-01-23 07:06:44 UTC
Having Autoscroll will benefit users when browsing without having to adjust our eyes and mouse to make an accurate click on the scrollbar. Middle Click + Drag To Scroll is widely used in browsers and many of us got used to it for its faster and easier workaround.

Thanks In Advance! =D


SOFTWARE/OS VERSIONS
Kubuntu 18.04 LTS
KDE Plasma Version: 5.12.9
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5
Comment 1 Aldrin Tadas 2020-07-16 14:57:13 UTC
There's a hacky way to do this in Linux in general regardless of what desktop environment you use meaning it's going to work in any application that supports mouse wheel scrolling.

It modifies the mouse functionality when middle-click is held down. You hold the middle click then when you slide down your mouse it'll send a mouse wheel signal instead of your cursor moving down.

What you're gonna look for if you're using libinput is this when you type ` xinput --list-props <id number of your mouse>`

`libinput Scroll Method Enabled (287):	0, 0, 1`
`libinput Scroll Method Enabled Default (288):	0, 0, 1`

and for it to survive a reboot I have this on my /etc/X11/xorg.conf.d/40-libinput.conf

Section "InputClass"
        Identifier "libinput pointer catchall"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
 	 Option "ScrollMethod" "button"
        Driver "libinput"
EndSection
Comment 2 Xeno Idaltu 2021-07-16 00:52:28 UTC
Thank you Aldrin. 


I like the way I navigate on Dolphin now, however there are two issues.

1) Firefox, Falkon, Chromium, etc have now lost the "image/icon" that shows up under our cursor when we press/hold the middle button. 

I think we should edit Breeze Cursor themes to make the "all-scroll" image/icon show up instead. The tricky part is what name/numbers to use. Years ago, I saw a GitHub page with all possible names/numbers to use but currently don't have enough time to search around the web.
Comment 3 Xeno Idaltu 2021-07-16 00:53:47 UTC
2) The second issue is speed. I feel that Firefox has become faster when scrolling. I don't know how to edit this issue yet.
Comment 4 Bug Janitor Service 2024-07-01 14:41:39 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2357
Comment 5 Zamundaaa 2024-07-04 14:49:42 UTC
Git commit 7717671f0f074bdd0a936d927c7d86ebe47eb46c by Xaver Hugl, on behalf of Evgeny Chesnokov.
Committed on 04/07/2024 at 14:49.
Pushed by zamundaaa into branch 'master'.

kcms/mouse: add support for On-Button scrolling

Now you can scroll the page when you press the middle mouse button
Related: bug 429759, bug 473993, bug 477548

M  +7    -1    kcms/mouse/backends/kwin_wl/kwin_wl_device.cpp
M  +23   -0    kcms/mouse/backends/kwin_wl/kwin_wl_device.h
M  +17   -5    kcms/mouse/backends/x11/x11_libinput_dummydevice.cpp
M  +24   -0    kcms/mouse/backends/x11/x11_libinput_dummydevice.h
M  +11   -0    kcms/mouse/inputdevice.h
M  +17   -0    kcms/mouse/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/7717671f0f074bdd0a936d927c7d86ebe47eb46c