emthree icon indicating copy to clipboard operation
emthree copied to clipboard

Open to a small improvement on swipe handling?

Open deckarep opened this issue 2 years ago • 1 comments
trafficstars

Hi @britzl - you have a fantastic library here that I’ve been trying out.

I found a way to improve the swipe behavior to make it more lenient.

Are you open to some code contribution on this?

Details: currently when a swipe is handled in the on_touch handler of the emthree library a user has to be accurate enough to swipe either horizontally in the same row or vertically in the same column for the swipe to register.

So, I’d like to change this behavior by just snapping a swipe to the nearest direction and based on that swapping with the nearest neighbor either up/down/left/right

I have the code working as well in my game: deckarep.itch.io

Thank you for your time!

deckarep avatar Jul 04 '23 05:07 deckarep

Hi! Yes I'm always open to contributions! Please send me a PR. Thanks!

britzl avatar Jul 04 '23 06:07 britzl