I am writing an application where in reaction to rotating the mouse wheel 
(FL_MOUSEWHEEL event) I am updating an image which gets drawn on the screen via 
fl_draw_image(). (The image represents a 2D slice out of a 3D medical image 
volume). At slow mouse wheel rotation speeds everything works quite well. But 
if the user rotates the wheel too fast then things start getting sluggish. The 
problem is that the mouse wheel events come in faster than it takes to update 
the image. What I would like to do is skipping the image update for 
intermediate mouse wheel events. Is there a way to do this in FLTK 1.3? E.g., 
can I somehow check if there are FL_MOUSEWHEEL events queued up, and if so, 
work them off without redrawing for each individual one (just the last one)?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to