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 4f3e45b)
  • Loading branch information...
yyc-git committed May 24, 2019
1 parent 4f3e45b commit 2e7add80bbaa832960636c0c66c01ba76463337e
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/job/utils/InitEventJobUtils.re
  2. +1 −0 test/unit/job/no_worker/tool/EventTool.re
@@ -405,7 +405,7 @@ let _fromPCDomEventArr = state => [|
fix chrome bug for getMovementDeltaWhenPointerLocked:
the first movementDelta->x >100!
*/
|> WonderBsMost.Most.skip(1)
|> WonderBsMost.Most.skip(2)
|> WonderBsMost.Most.until(
_fromPointDomEvent("mouseup", state)
|> WonderBsMost.Most.tap(event =>
@@ -184,4 +184,5 @@ let restore = state => {
let triggerFirstMouseDragOverEvent = (mouseEvent, state) => {
triggerDomEvent("mousemove", getPointEventBindedDom(state), mouseEvent);
triggerDomEvent("mousemove", getPointEventBindedDom(state), mouseEvent);
triggerDomEvent("mousemove", getPointEventBindedDom(state), mouseEvent);
};

0 comments on commit 2e7add8

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