[Vm-dev] About too many event generated

stephane ducasse stephane.ducasse at gmail.com
Sun Jul 17 21:07:20 UTC 2011


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 
			["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?



More information about the Vm-dev mailing list