Cursor X and Y always returns 0
Hi there,
I created a simple text element, added a "tap" interaction, choose "Set Value" and "Calculated" using the expression "Cursor X" (as in the provided constant).
However, no matter where on the text element I click the value is always set to 0.
Replacing "Cursor X" with "Random", for example, works just fine: the text element displays a different random number on each click.
Any idea what the problem could be?
Thanks,
Dominik
Hi Dominik,
This is happening because the interaction "On tap" is simulating a finger and not a mouse cursor. The behavior is different.
Best,
Sonia Durán
Hi Dominik,
This is happening because the interaction "On tap" is simulating a finger and not a mouse cursor. The behavior is different.
Best,
Sonia Durán
Hi Sonia,
Thanks! How do I get the location of the (simulated) finger, though?
On mobile, I don't have a cursor. All interactions are triggered by taps (i.e., fingers). Still, I need to know where on the screen the user is interacting (tapping, dragging, etc.).
Given there are already cursor coordinates (for desktop prototypes), wouldn't it make sense to also have tap coordinates (for mobile and tablet prototypes)?
Thanks,
Dominik
Hi Sonia,
Thanks! How do I get the location of the (simulated) finger, though?
On mobile, I don't have a cursor. All interactions are triggered by taps (i.e., fingers). Still, I need to know where on the screen the user is interacting (tapping, dragging, etc.).
Given there are already cursor coordinates (for desktop prototypes), wouldn't it make sense to also have tap coordinates (for mobile and tablet prototypes)?
Thanks,
Dominik
Hi Dominik,
This makes sense. I will transfer your suggestion to our development team.
Best,
Sonia Durán
Hi Dominik,
This makes sense. I will transfer your suggestion to our development team.
Best,
Sonia Durán
Cool, thanks, Sonia :)!
Cool, thanks, Sonia :)!
Hi Dominik,
I'm happy to inform you that this issue has been resolved on our last 7.1.0 update.
Best,
Sonia Durán
Hi Dominik,
I'm happy to inform you that this issue has been resolved on our last 7.1.0 update.
Best,
Sonia Durán
Thank you :)!
Thank you :)!
What about getting CursorX and CursorY values on drag?
What about getting CursorX and CursorY values on drag?
Replies have been locked on this page!