[ wxwindows-Patches-1905784 ] Fix for
using-mouse-wheel-makes-window-scroll-forever
SourceForge.net
noreply at sourceforge.net
Sun Mar 2 10:19:26 PST 2008
Patches item #1905784, was opened at 2008-03-02 19:01
Message generated for change (Comment added) made by linmain
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1905784&group_id=9863
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Contrib -- STC
Group: optimization
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Johannes (linmain)
Assigned to: Robin Dunn (robind)
Summary: Fix for using-mouse-wheel-makes-window-scroll-forever
Initial Comment:
This fix/optimization attacks one common annoying problem among software: When windows take some time to render themself, and the user scrolls the window up or down, the user will think "hey, scroll faster" and scrolls even heavier. Doing that, the user pushes many wheel events onto the event queue, so that after the user found the right position in the document, the window still processes wheel events and scrolls too far, often over 5 seconds longer than wanted (depending on the rendering complexity).
This patch tries to fix it by measuring the time taken to evaluate and process the current mouse wheel event. When the next event arrives before the current event is processed completely (this is seen by their relative timestamps and the time taken to process the current event), then it is ignored.
This patch has considerably improved the responsibility of the mouse wheel for me, especially with styled text. The patch is attached. It is taken against wx version 2.8.7.
----------------------------------------------------------------------
>Comment By: Johannes (linmain)
Date: 2008-03-02 19:19
Message:
Logged In: YES
user_id=1257140
Originator: YES
i'm sorry the first file seems not to be the right .patch format. (i'm
still a bit n00bish with diff and patch :))
File Added: better_wheel_responding.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=309863&aid=1905784&group_id=9863
More information about the wx-dev
mailing list