Bug 462933

Summary: Left-Clicking on kwrite minimap jumps to location instead of advancing one page
Product: [Applications] kate Reporter: jimfenton75
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kare.sars
Priority: NOR    
Version First Reported In: 20.12.0   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jimfenton75 2022-12-11 20:33:44 UTC
SUMMARY
A left-click on the minimap scrollbar in kwrite causes the file to jump to that location instead of advancing a single page.  This is the same action as middle-click on minimap scrollbar.


STEPS TO REPRODUCE
1. Open text documet with many pages of text in kwrite
2. Under Settings> Configure Editor > Borders, enable "Show scrollbar mini-map"
3. Left-click on scrollbar minimap near bottom of scrollbar

OBSERVED RESULT
File jumps to selected position

EXPECTED RESULT
File advances one page

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Mageia 8 64-bit
KDE Plasma Version: 5.20.4
KDE Frameworks Version:  5.76.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Disabling "Show scrollbar mini-map" results in expected scrollbar behavior.  Left-click on scrollbar advances one page and middle-click jumps to location.

I have set gtk-primary-button-warps-slider=false in ~/.config/gtk-3.0/settings.ini
Comment 1 Kåre Särs 2022-12-13 21:50:45 UTC
Thanks for the report.

This behavior is by design. We have explicitly made it behave like this when you have the minimap enabled. With a normal scrollbar you do not see what is below or above, so you do not know exactly where you want to go. With the minimap you have indications and can jump quite accurately to the wanted position. (middle-click seems to be a very advanced-user action) 
Page up/down gives the same scrolling as left click on a normal scroll-bar.

BR,
  Kåre