File tree 1 file changed +7
-1
lines changed
packages/runtime-dom/src/modules
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,9 +19,15 @@ let _getNow: () => number = Date.now
19
19
// timestamp can either be hi-res (relative to page load) or low-res
20
20
// (relative to UNIX epoch), so in order to compare time we have to use the
21
21
// same timestamp type when saving the flush timestamp.
22
+
23
+ // #2937, in firefox 53 and earlier versions, the timestamp is microseconds
24
+ // of the current time, resulting in the binding event not being triggered
22
25
if (
23
26
typeof document !== 'undefined' &&
24
- _getNow ( ) > document . createEvent ( 'Event' ) . timeStamp
27
+ ( _getNow ( ) > document . createEvent ( 'Event' ) . timeStamp ||
28
+ _getNow ( ) . toString . length -
29
+ ( document . createEvent ( 'Event' ) . timeStamp / 1000 ) . toString . length >=
30
+ 0 )
25
31
) {
26
32
// if the low-res timestamp which is bigger than the event timestamp
27
33
// (which is evaluated AFTER) it means the event is using a hi-res timestamp,
You can’t perform that action at this time.
0 commit comments