Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_on_SwipeDetector_swipe_started( partial_gesture ) always giving "left" on using get_direction(). #26

Open
biniHash opened this issue Mar 5, 2020 · 2 comments

Comments

@biniHash
Copy link

biniHash commented Mar 5, 2020

When using the func _on_SwipeDetector_swiped( partial_gesture ), the partial_gesture.get_direction() always returns the direction as left.

This is not desired, as in my case, I need to perform an action as soon as the swipe starts.

Example code to recreate:

func _on_SwipeDetector_swiped( partial_gesture  ):
	var dir = partial_gesture.get_direction()
	print("Swiped in dir = ", dir)
@arypbatista
Copy link
Owner

Can you share your SwipeDetector configuration? How did you set up the node?

@biniHash
Copy link
Author

Sure, I have configured the SwipeDetector node as : https://i.imgur.com/3CQ2B1T.png
And it's set up in the scene hierarchy as : https://imgur.com/a/QokC8i5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants