[Okular-devel] [Bug 234713] mouse scroll works incorrect

mathieu lornac mathieu.lornac at gmail.com
Wed Jul 21 00:02:52 CEST 2010


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





--- Comment #8 from mathieu lornac <mathieu lornac gmail com>  2010-07-21 00:02:50 ---
Yes, if you print the delta variable (i did it with qDebug()) without the
patch, you will see that when the display bug occurs the delta values are too
big to be correct (almost the screen size).

I reproduced the bug with the panel on the left, it was easier that way.

If mouseGrabPos.X is close to 0 and mousePos is now the bottom of the screen
(going through the up), on the next refresh you have delta with a wrong value
(closed to screen size).

This is what i have changed with delta.setY(mouseContainer.height() -
absDelta.y());

It fixes the bug for me, i can look for another way to fix it if you think this
is not correct.
Mathieu

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list