Hello Framer community :)What is the good way to detect mouse cursor position in coordinates of Device viewer?
Excellent Jordan Robert Dobson It works perfect!!!!
Hey Antoon Borzov, this is fairly easy to do. All you have to do is create a fullscreen layer and then print the coordinates of a TouchMove ‘event’ to get the current coordinates of the cursor. :)
Nils Hoenson yeah, but what if I want to get x values from 0 to 750 in this case? any way to translate screen x values to "device" x values?
See the module I just posted on Thursday or Friday. It helps with exactly this.
Normalize mouse and touch events. Reminds me I need to post this on framercode.
Thanks Jordan! Works great for Click, TouchMove events. Throws error on DragMove though.
You probably aren't passing the correct argument objects to the Class methods.
I think Drag event arguments are (event, dragObject, layer) unlike Click/Touch which has arguments (event, layer).
Thanks for this Jordan Robert Dobson!