File tree 1 file changed +9
-1
lines changed
src/platforms/web/runtime/modules
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,17 @@ function add (
61
61
const original = handler
62
62
handler = original . _wrapper = function ( e ) {
63
63
if (
64
+ // no bubbling, should always fire.
65
+ // this is just a safety net in case event.timeStamp is unreliable in
66
+ // certain weird environments...
67
+ e . target === e . currentTarget ||
68
+ // event is fired after handler attachment
64
69
e . timeStamp >= attachedTimestamp ||
70
+ // #9462 bail for iOS 9 bug: event.timeStamp is 0 after history.pushState
71
+ e . timeStamp === 0 ||
65
72
// #9448 bail if event is fired in another document in a multi-page
66
- // electron/nw.js app
73
+ // electron/nw.js app, since event.timeStamp will be using a different
74
+ // starting reference
67
75
e . target . ownerDocument !== document
68
76
) {
69
77
return original . apply ( this , arguments )
You can’t perform that action at this time.
0 commit comments