Przeglądaj źródła

refactor: should also fire handler if timestamp was same

Evan You 7 lat temu
rodzic
commit
ce7ca7bde9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/platforms/web/runtime/modules/events.js

+ 1 - 1
src/platforms/web/runtime/modules/events.js

@@ -54,7 +54,7 @@ function add (
     const now = performance.now()
     const original = handler
     handler = original._wrapper = function (e) {
-      if (e.timeStamp > now) {
+      if (e.timeStamp >= now) {
         return original.apply(this, arguments)
       }
     }