The reason is that some events (mousemove/mouseover) I rarely use the
event properties, but the performance of that function is rather
expensive compared to the number of events being fired. Fix might add
300ms of computation for the lifetime of a typical drag/drop event. (I
will happily get better numbers)
This is likely not a concern for most people. But in the app I am
working on, it is the difference between a mouseover/enter looking
instantaneous, or a slight, but annoying lag.
I'm suggesting an additional parameter that will tell the event system
to pass the native event:
$("a").bind("mouseover", { ..data.. }, function(){ ... }, true); ...
true means raw event.
I suppose I should first look if there is a way to speed up fix before
changing the API.