https://bugs.kde.org/show_bug.cgi?id=487521

Jason A. Donenfeld <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
                 CC|                            |[email protected]
             Status|REPORTED                    |CONFIRMED

--- Comment #2 from Jason A. Donenfeld <[email protected]> ---
This seems to "fix" it:

--- a/src/terminalDisplay/TerminalDisplay.cpp
+++ b/src/terminalDisplay/TerminalDisplay.cpp
@@ -1909,8 +1909,8 @@
             // of mouse wheel rotation.  Mouse wheels typically move in steps
of 15 degrees,
             // giving a scroll of 3 lines

-            const int lines =
-               
_scrollWheelState.consumeSteps(static_cast<int>(_terminalFont->fontHeight() *
qApp->devicePixelRatio()), ScrollState::degreesToAngle(5));
+            // Use wheel-style steps for alternate-screen scrolling too.
+            const int lines =
_scrollWheelState.consumeLegacySteps(ScrollState::degreesToAngle(5));
             const int keyCode = lines > 0 ? Qt::Key_Up : Qt::Key_Down;
             QKeyEvent keyEvent(QEvent::KeyPress, keyCode, Qt::NoModifier);

I wonder if the pixel calculation in there is somehow wrong for HiDPI, or some
other change that would explain the difference between Wayland and X11...

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to