-
-
Save browniefed/8ba43519853966e4ce9e9a8fb88ebeb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const addY = add(this.offsetY, this.dragY); | |
const addX = add(this.offsetX, this.dragX); | |
this.transX = cond(eq(this.gestureState, State.ACTIVE), addX, set(this.offsetX, addX)); | |
this.transY = cond(eq(this.gestureState, State.ACTIVE), addY, set(this.offsetY, addY)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment