I'm currently writing my first module called "circleConstraint", allowing to constrain a draggable layer to a circle. Unfortunately, I'm stuck at a certain point.
Instead of dragging the constrained layer directly, an invisible helper is used to calculate layer.x/y . Now, I'd like to pass the helper's "private" DragStatus (DragStart, DragMove, DragEnd) on to Framer, so it can be used to trigger events like animations.
I've tried some different approaches (passing&validating arguments etc.), but so far, only a shitty/buggy workaround using Utils.interval worked. There must be a way better, way more elegant way to do this.
Can anyone help? Thanks.