thru
11th April 2011, 17:42
Hi all,
Anyone knows if there's a way to know when the QWheelEvent in a mac corresponts to simulated "inertial scrolling"? If you want to use the mouse wheel event for something other than scrolling with no inertia, for example rotating an image, you get a stream of events and I can not guess a way to deduct they are real or simulated inertial.
Intercepting TouchEvents may be a solution but you would have to figure out all the behaviors depending on types of mice (for example multitouch with two fingers, magic mouse with one a other possible implementations) and probably leaving gaps for other devices or configurations.
thanks!
Anyone knows if there's a way to know when the QWheelEvent in a mac corresponts to simulated "inertial scrolling"? If you want to use the mouse wheel event for something other than scrolling with no inertia, for example rotating an image, you get a stream of events and I can not guess a way to deduct they are real or simulated inertial.
Intercepting TouchEvents may be a solution but you would have to figure out all the behaviors depending on types of mice (for example multitouch with two fingers, magic mouse with one a other possible implementations) and probably leaving gaps for other devices or configurations.
thanks!