Re: [OpenMap Users] collapse multiple mouse wheel events into one zoom change

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Thu, 5 Aug 2010 23:46:16 -0400

Hi Pete,

Done and done. I've implemented it for the next release.

It should be checked into the code base for OpenMap 5 early next week.

500 ms seemed too long of a wait for an update, BTW. 60 seems like the happy medium to let the user think something is happening while still taking a burden off the map. You can always modify it, though.

Thanks for the great idea.

- Don

On Aug 4, 2010, at 11:47 PM, Pete Flugstad wrote:

> Has anyone done anything along the lines of adding a delay to the processing
> of mouse wheel events, in order to cache multiple events into one
> change in zoom level?
>
> Something along the line of receiving the mouseWheelEvent in AbstractMouseMode,
> updating a zoom delta to 1.1 or 0.9, then setting a timer to fire off
> like 500 ms later?
> Subsequent mouseWheelEvents would just update the zoom delta. When the timer
> fires, it would then do the actual zoom.
>
> I went looking though the archives but didn't see anything.
>
> Thanks,
> Pete
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe openmap-users"]

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Aug 05 2010 - 23:48:46 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT