You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Konva and have encountered an issue with the Transformer component. When dragging a transformer anchor, the active anchor can change during the drag event, which is not the desired behavior. I would like to stop resizing when the selected anchor moves to the edge (e.g., stop resizing when the top-left anchor is dragged beyond the right edge or bottom edge). I tried to override the anchorDragBoundFunc and use transformer.getActiveAnchor to restrict the selected anchor, but it turns out that ActiveAnchor changes automatically. How can I achieve this goal?