Skip to content

Instantly share code, notes, and snippets.

@RitaDias
Created January 16, 2017 14:34
Show Gist options
  • Save RitaDias/f7b516757f62fa39fd052cd57ab0a3d8 to your computer and use it in GitHub Desktop.
Save RitaDias/f7b516757f62fa39fd052cd57ab0a3d8 to your computer and use it in GitHub Desktop.
if (moveX + (currentX - lastX) < 0 && moveX + (currentX - lastX) > -menuWidth) {
moveX = moveX + (currentX - lastX);
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment