Skip to content

Conversation

ericbourque29
Copy link

Replaced UP and DOWN with TAP in the TouchObserver to avoid double events in adroid.

Replaced UP and DOWN with TAP in the TouchObserver to avoid double events in adroid.
@pspeed42
Copy link
Contributor

Which double events? You should get an event when you press and an event when you release... just like any other key or button.

@mrlem
Copy link

mrlem commented Dec 7, 2019

I suspect what @ericbourque29 was referring to is that in Android, not only will up and down events be fired, but also a tap event.

However, the TouchObserver doesn't consume those, so they will be passed on to the scene behind your UI. And from your scene, if you want to react to tap events, you will receive them all regardless whether or not they landed in your UI first.

(faced the same issue myself).

@mrlem
Copy link

mrlem commented Dec 7, 2019

Personally, I'd still consume UP and DOWN events, but also TAP events.

@pspeed42
Copy link
Contributor

Yeah, I know this is years late by now... but I agree. UP and DOWN are still needed.

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

Successfully merging this pull request may close these issues.

3 participants