Skip to content
Permalink
Browse files

fix(event): fix init event job->chrome bug for getMovementDeltaWhenPo…

…interLocked: use skip(2) instead of skip(1)

(refer to d60b64f)
  • Loading branch information...
yyc-git committed May 24, 2019
1 parent 4d89c8e commit 6eb7a9ddbaf9083b27761f51b8afede0f1a43760
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/core/job/init/InitEventJob.re
  2. +1 −0 test/integration/job/tool/EventTool.re
@@ -470,7 +470,7 @@ module DomEvent = {
fix chrome bug for getMovementDeltaWhenPointerLocked:
the first movementDelta->x >100!
*/
|> WonderBsMost.Most.skip(1)
|> WonderBsMost.Most.skip(2)
|> WonderBsMost.Most.until(
_fromPointDomEvent("mouseup", engineState)
|> WonderBsMost.Most.tap(event =>
@@ -279,4 +279,5 @@ let buildBodyTarget = () => {"tagName": "BODY"};
let triggerFirstMouseDragOverEvent = mouseEvent => {
triggerDomEvent("mousemove", getBody(), mouseEvent);
triggerDomEvent("mousemove", getBody(), mouseEvent);
triggerDomEvent("mousemove", getBody(), mouseEvent);
};

0 comments on commit 6eb7a9d

Please sign in to comment.
You can’t perform that action at this time.