Hey, y'all. I'm noticing some unexpected behavior when using draggable constraints with scaled layers (see this prototype: http://share.framerjs.com/6filuiytahkk/). This prototype is a modification of the original drag constraints example (from http://blog.framerjs.com/posts/dragging-scrolling-paging.html).
Notice that I'm applying a scale factor to both the draggable layer and the layer that visualizes the drag constraints.
However, in order to get the correct constrained behavior you need to average out the original scale factor (1) and the new scale factor (2). This is visualized by the green square.
Is this the expected behavior? It didn't seem to make sense to me, but perhaps I'm misunderstanding the math behind it. Can anyone explain what's going on here?