i wish to create two listeners, one for tap & the other for touch.
when the user taps twice, do A and only A. Ignore the touch
when the user touches, do B.
it seems i can check for numTaps on the tap, but won’t the touch listener also be invoked?
i wish to create two listeners, one for tap & the other for touch.
when the user taps twice, do A and only A. Ignore the touch
when the user touches, do B.
it seems i can check for numTaps on the tap, but won’t the touch listener also be invoked?
If I remember correctly tap is as subevent for touch, I mean both begin at the same moment. However it goes probably as follow.
You touch screen. Began phase of touch is registered. If you release finger then ‘tap’ will fire. If you moved finger instead then moved phase of touch event will be executed but tap won’t be called anuymore. Then if you release finger then only touch’s eneded will be called.
thanks.
If I remember correctly tap is as subevent for touch, I mean both begin at the same moment. However it goes probably as follow.
You touch screen. Began phase of touch is registered. If you release finger then ‘tap’ will fire. If you moved finger instead then moved phase of touch event will be executed but tap won’t be called anuymore. Then if you release finger then only touch’s eneded will be called.
thanks.