Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit d82335d

Browse files
committed
Decrease phantom events period
1 parent d381f8a commit d82335d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/composables/preventPhantomEvents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export const preventPhantomEvents = combine(
4242
onTransitionEnd: ({onTransitionEnd}) => (e: TransitionEvent) => {
4343
if (!onTransitionEnd) { return; }
4444

45-
// Skip transitionEnd that comes <= 15ms after (reversing) a transition.
45+
// Skip transitionEnd that comes <= 10ms after (reversing) a transition.
4646
// In most cases this came from the previous transition.
4747
let compareWith = lastTriggerTime;
4848
if ((e.timeStamp as any) < 1000000000000 && lastTriggerTimePerformance) {
4949
compareWith = lastTriggerTimePerformance;
5050
}
51-
if ((e.timeStamp as any) - compareWith <= 15) {
51+
if ((e.timeStamp as any) - compareWith <= 10) {
5252
return;
5353
}
5454

0 commit comments

Comments
 (0)