Closed Bug 621976 Opened 9 years ago Closed 9 years ago
Add mouse motion and Gesture magnify events compress for Qt Port
this is available in Gtk part, and need to be done for Qt port, improve event handling and safe CPU. Similar to this http://mxr.mozilla.org/mozilla-central/source/widget/src/gtk2/nsWindow.cpp#2530
Also it would be useful for Meego netbooks devices with Gtk environment...
This is the only way I found how to compress Qt motion and pinch events... GTK compress way does not work on Qt. This help us to avoid too many motion events processing.
Looks reasonable, but instead of a zero-length timer, it might be simpler and work just as well to use a simple XPCOM event instead ... NS_DispatchToMainThread etc.
1) Use DispatchtoMainThread for filtering. 2) Minor code cleanup. 3) calculate distance touchPoint and center point.
Ups, previous patch contained wrong changes
Comment on attachment 503465 [details] [diff] [review] Updated, filter motion and pinch events Wolfgang could you check quickly this patch?
Attachment #503465 - Flags: review?(doug.turner) → review?(mozilla)
Comment on attachment 503465 [details] [diff] [review] Updated, filter motion and pinch events looks good to me
Attachment #503465 - Flags: review?(mozilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.