diff --git a/src/systems/userinput/devices/app-aware-touchscreen.js b/src/systems/userinput/devices/app-aware-touchscreen.js index 33fbef4767..491aa3c336 100644 --- a/src/systems/userinput/devices/app-aware-touchscreen.js +++ b/src/systems/userinput/devices/app-aware-touchscreen.js @@ -36,6 +36,10 @@ const getPlayerCamera = (() => { }; })(); +function isSingleActionButton(el) { + return el.components.tags && el.components.tags.data.singleActionButton; +} + function shouldMoveCursor(touch, rect, raycaster) { const isCursorGrabbing = !!AFRAME.scenes[0].systems.interaction.state.rightRemote.held; if (isCursorGrabbing) { @@ -74,7 +78,7 @@ function shouldMoveCursor(touch, rect, raycaster) { (isFrozen || !isPinned) && !isStaticControlledMedia && !isStaticMedia && - (remoteHoverTarget && canMove(remoteHoverTarget)) + (remoteHoverTarget && (canMove(remoteHoverTarget) || isSingleActionButton(remoteHoverTarget))) ); }