[Interest] how to get and purge events from queue?
David M. Cotter
dave at kjams.com
Thu Nov 5 05:38:39 CET 2020
when scrolling, the scroll for my app is a bit sluggish (do not ask about that)
which means that mouse wheel scroll events can pile up in the queue while the first scroll event is being processed.
meaning that a dozen more *slow* events get handled after the user stops scrolling.
what i want to do is: when i get a wheel scroll event, at that moment i see if there are MORE scroll events in the queue. if not, i just handle this event. but if there ARE i want to get the most recent one, and handle only that ONE event, while purging the rest.
how can i do this?
-dave
More information about the Interest
mailing list