BUG: 408874
Details
- Reviewers
cullmann - Group Reviewers
Kate KTextEditor - Commits
- R39:4f4d1ad9b789: fix autoscrolling down speed
Diff Detail
- Repository
- R39 KTextEditor
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
This patch is suggestion to fix https://bugs.kde.org/show_bug.cgi?id=408874
Auto scrolling down seems to hugely accelerated downward beyond the intent of the coding, because the scrolling interferes with cursorPlacement. (See in contrast to this scrolling up). While this patch has been done due to necessity to an old version, newer versions seems to still suffer from the same issue.
It fixes two places, in KateViewInternal::scrollTimeout() it first calculates the line to scrollTo, then places the cursor, and the scrolls to that place. First scrolling (original version) moves the cursor more lines downward than intended.
In KateViewInternal::mouseMoveEvent() it simply won't place the cursor if scrolling, since the scrollTimeout will do it nevertheless.