Summary: | DragScroll much faster (too fast) downward compared to upward | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Axel Kittenberger <axkibe> |
Component: | part | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nate |
Priority: | NOR | ||
Version: | 18.08.0 | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/ktexteditor/4f4d1ad9b78999671c4944e013ea4f103d8ce86c | Version Fixed In: | |
Sentry Crash Report: |
Description
Axel Kittenberger
2019-06-18 15:19:32 UTC
PS: sorry my above patch proposal got out to be reversed, this is in the right direction: diff -ru kate-4.14.3-orig/part/view/kateviewinternal.cpp kate-4.14.3/part/view/kateviewinternal.cpp --- kate-4.14.3-orig/part/view/kateviewinternal.cpp 2014-10-26 21:17:55.000000000 +0100 +++ kate-4.14.3/part/view/kateviewinternal.cpp 2019-06-18 17:05:47.507032294 +0200 @@ -2864,7 +2864,7 @@ m_scrollY = d; } - placeCursor( QPoint( m_mouseX, m_mouseY ), true ); + if( !m_scrollY ) placeCursor( QPoint( m_mouseX, m_mouseY ), true ); } else @@ -3092,8 +3092,9 @@ { if (m_scrollX || m_scrollY) { - scrollLines (startPos().line() + (m_scrollY / (int) renderer()->lineHeight())); + int scrollTo = startPos().line() + (m_scrollY / (int) renderer()->lineHeight()); placeCursor( QPoint( m_mouseX, m_mouseY ), true ); + scrollLines (scrollTo); } } Thanks for the patch! Can you submit it using https://phabricator.kde.org/differential/diff/create/? Full documentation is available at https://community.kde.org/Infrastructure/Phabricator OK, there I uplaoded it. https://phabricator.kde.org/D22071 Thanks! Git commit 4f4d1ad9b78999671c4944e013ea4f103d8ce86c by Christoph Cullmann, on behalf of Axel Kittenberger. Committed on 24/06/2019 at 20:14. Pushed by cullmann into branch 'master'. fix autoscrolling down speed Differential Revision: https://phabricator.kde.org/D22071 M +5 -2 src/view/kateviewinternal.cpp https://commits.kde.org/ktexteditor/4f4d1ad9b78999671c4944e013ea4f103d8ce86c |