emthree
emthree copied to clipboard
Open to a small improvement on swipe handling?
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!
Hi! Yes I'm always open to contributions! Please send me a PR. Thanks!