Is there any example for how to use AR.CONST.CLICK_BEHAVIOR.TOUCH_UP and AR.CONST.CLICK_BEHAVIOR.TOUCH_DOWN?
Default is click. If change to touch down or up, which event will be fired?
about 8 years ago
The click behavior controls on what touch event the onClick event will be fired.
On TOUCH_UP, the onClick event will be fired when the user releases his/her finger from the touch screen, regardless of where the touch started.
On TOUCH_DOWN, the onClick event will be fired when the user touches the touch screen, regardless of where the touch/swipe will end.
On CLICK, the onClick event will only be fired when the user touches and releases the finger from the screen in the same area. If the user swipes his/her finger too far over the screen between touching and releasing, this will not be considered a click.