Skip to content

Instantly share code, notes, and snippets.

@ederchrono
Created May 15, 2019 06:44
Show Gist options
  • Save ederchrono/275a37bb0925dea0878ef743da66caf4 to your computer and use it in GitHub Desktop.
Save ederchrono/275a37bb0925dea0878ef743da66caf4 to your computer and use it in GitHub Desktop.
// inside computed
diffX () {
return this.cursorStartX - this.cursorCurrentX
},
swipingLeft () {
return this.diffX >= 0
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment