Bug 462933 - Left-Clicking on kwrite minimap jumps to location instead of advancing one page
Summary: Left-Clicking on kwrite minimap jumps to location instead of advancing one page
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: 20.12.0
Platform: Mageia RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-11 20:33 UTC by jimfenton75
Modified: 2022-12-13 21:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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