koenbok / Framer

Framer - Design Everything
https://framer.com
MIT License
5.83k stars 477 forks source link

ContextPoint incorrect with scaled custom device when listening to screen #571

Open IanBellomy opened 6 years ago

IanBellomy commented 6 years ago

When listening to Framer.Device.screen.onMouseMove(), and when there is a custom device, and when the window is not 100%, the event.contextPoint coordinates are not with respect to the scaled screen space as they are when listening to a layer. I'm not sure if this is expected behavior (contextPoint isn't technically in the built-in documentation) but it is kind-of undesirable... Example: https://framer.cloud/RYPBi

The coordinates listed in this image are for the top right corner.

screen shot 2018-02-28 at 11 42 30 am