Skip to content

Commit

Permalink
[reverted] writing CHANGED to state on every move
Browse files Browse the repository at this point in the history
Summary: @jverkoey had requested this in http://codereview.cc/D3085, but had forgotten that `state` and `drag` are separate streams in this implementation, so `state` only needs to be written to when it has changed.

Reviewers: O2 Material Motion, O3 Material JavaScript platform reviewers, #material_motion, featherless

Reviewed By: O2 Material Motion, #material_motion, featherless

Tags: #material_motion

Differential Revision: http://codereview.cc/D3118
  • Loading branch information
appsforartists committed Apr 27, 2017
1 parent 9a594f2 commit dd5219e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/core/src/systems/dragSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,6 @@ export function dragSystem({
state.write(GestureRecognitionState.CHANGED);
break;

case GestureRecognitionState.CHANGED:
if (!atRest) {
state.write(GestureRecognitionState.CHANGED);
}
break;

default:break;
}

Expand Down

0 comments on commit dd5219e

Please sign in to comment.