Skip to content

Commit

Permalink
fix(event): fix init event job->chrome bug for getMovementDeltaWhenPo…
Browse files Browse the repository at this point in the history
…interLocked: use skip(2) instead of skip(1)

(refer to 4f3e45b)
  • Loading branch information
yyc-git committed May 24, 2019
1 parent 4f3e45b commit 2e7add8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/job/utils/InitEventJobUtils.re
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down
1 change: 1 addition & 0 deletions test/unit/job/no_worker/tool/EventTool.re
Original file line number Diff line number Diff line change
Expand Up @@ -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.