Skip to content

Commit ee8c8fd

Browse files
committed
Merge branch 'lib/implement-events-passive-listener-spec' of https://github.com/Amemome/node into lib/implement-events-passive-listener-spec
2 parents aa4fe83 + a2ab8c2 commit ee8c8fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/internal/event_target.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,9 @@ class EventTarget {
846846
arg[kInPassiveListener] = true;
847847
}
848848
result = FunctionPrototypeCall(callback, this, arg);
849+
if (handler.passive && !handler.isNodeStyleListener) {
850+
arg[kInPassiveListener] = false;
851+
}
849852
if (!handler.isNodeStyleListener) {
850853
arg[kIsBeingDispatched] = false;
851854
}

0 commit comments

Comments
 (0)