Framer icon indicating copy to clipboard operation
Framer copied to clipboard

Fix draggable for layer outside of Framer.CurrentContext

Open nvh opened this issue 9 years ago • 1 comments

Reproduce:

  • See the following example: http://share.framerjs.com/q6vbjhkoajuv/
  • Try dragging around the red and the green layers

Expected:

Both the red and the green layer can be dragged normally

Observed:

The red layer that is outside of Framer.CurrentContext moves around to quickly (relative to the device scale)

Remarks:

This is due to the conversion of the eventPoint to Framer.CurrentContext that happens here: https://github.com/koenbok/Framer/blob/52589798b44e3c7e3f11928432a1c0757ddcb2fb/framer/GestureInputRecognizer.coffee#L330

nvh avatar Sep 01 '16 11:09 nvh

We should probably fix this in layer.emit because that is where the event and context come together.

koenbok avatar Sep 18 '16 10:09 koenbok