Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit fbe4ebe

Browse files
committed
Move asyncDispatch to rAF
Part of googlearchive/PointerGestures#31
1 parent 168de03 commit fbe4ebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dispatcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@
315315
}
316316
},
317317
asyncDispatchEvent: function(inEvent) {
318-
setTimeout(this.dispatchEvent.bind(this, inEvent), 0);
318+
requestAnimationFrame(this.dispatchEvent.bind(this, inEvent));
319319
}
320320
};
321321
dispatcher.boundHandler = dispatcher.eventHandler.bind(dispatcher);

0 commit comments

Comments
 (0)