About too many event generated

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

About too many event generated

stephane ducasse-2

Hi

I was reading the following code in HandMorph


generateMouseEvent: evtBuf
        "Generate the appropriate mouse event for the given raw event buffer"

        evtBuf first = lastEventBuffer first
                ifTrue:
                        ["Workaround for Mac VM bug, *always* generating 3 events on clicks"

                        evtChanged := false.
                        3 to: evtBuf size
                                do: [:i | (lastEventBuffer at: i) = (evtBuf at: i) ifFalse: [evtChanged := true]].
                        evtChanged ifFalse: [^nil]].
                ....

and I was wondering why/or if it was still the case?

Tx

Stef