Menu

#110 SEL_MOUSEWHEEL jumps unexpected

swbug
open
nobody
None
5
2017-06-07
2017-06-07
No

When I run a fox-application under Kubuntu-14.4 (fox1.6-1.6.49), then sometimes scrolling with the mousewheel jumps in an unexpected way. This happens e.g. in tests/tabbook when scrolling in the File-List.

I figured out, that the event-compression in FXApp.cpp is done only for ButtonPress Events, but the generation of SELMOUSEWHEEL is done for both ButtonPress and ButtonRelease Events.
This leads to unexpected large values in the event.code, because the value in ev.xbutton.subwindow is not (re)initialized right. It contains a window-ID instead of a small counter-value.
I encountered this behaviour in these moments where my mouse-cursor gets invisible on the screen (Dont know why this happens under my Kububtu14.4)

Solution: The appended Patch handles both types of events in the compression section in getNextEvent, this solved my problems. But i m not really sure why we need Press and Release events for the mousewheel. Supression of the Release events in dispatchEvent however did not lead to any good result.

So it would be nice to integrate my patch into the fox-libraries.

1 Attachments

Discussion


Log in to post a comment.