You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every native event has to go through jQuery.event.fix() to copy and normalize properties that go into the jQuery.Event object passed to handlers. There is a tension between minimizing the number of items copied for performance reasons versus making more of them available directly so that users won't be forced to get them via event.originalEvent.
Fixesjquerygh-3103Fixesjquerygh-1746Closesjquerygh-2860
- Removes the copy loop in jQuery.event.fix
- Avoids accessing properties such as client/offset/page/screen X/Y
which may cause style recalc or layouts
- Simplifies adding property hooks to event object
(cherry-picked from e61fccb)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Every native event has to go through
jQuery.event.fix()
to copy and normalize properties that go into thejQuery.Event
object passed to handlers. There is a tension between minimizing the number of items copied for performance reasons versus making more of them available directly so that users won't be forced to get them viaevent.originalEvent
.See further discussion in gh-2860 and gh-1746.
The text was updated successfully, but these errors were encountered: