Swipe Issue
OrchestralMonkey
Member Posts: 33
So I followed the GSC tutorial https://youtube.com/watch?v=mvGcnPJhtCU and even went a step farther and applied it to the swipe up & down directions as well. My issue now is negating the diagonals. As long as the swipe input is precise (up, down, left, right) everything works great. But, for instance, if I swipe towards the upper right a bit while meaning to make a Right direction swipe, it will sometimes recognize a Swipe Up and sometimes it will recognize a Swipe Right. Any thoughts on how to overcome this?
--Lee
Comments
so right now ur rule says if relea is greater than starting point swipe left.
make it say if release is greater than starting point+50
meaning u can swiped 50 pixels in any direction with no return, so only deliberate swipes are recogninized. mybe 100 pixels would be better though? is this a suitable fix?
so on swipe rights u add 100 on swipe lefts you subtrace a 100 . swipe up add, down subtract.
That seemed to do the trick (at least on my computer). Won't know for sure until I get it on my device. Thanks!