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
Set perPixelTargetFind: true on the fabric.Canvas
Create an active group of 2 or more objects.
Hover your mouse over the active group (notice the cursor).
Try to move the active group.
Expected Behavior
The group should actually move when trying to move it.
Actual Behavior
Does not move the group, just starts a new selection.
Possible Solution
I believe this is occurring because the transform on the group is being run twice.
Version
1.6.2
Test Case
http://codepen.io/merrifield69/full/VjyXxx/
Steps to reproduce
Set
perPixelTargetFind: true
on thefabric.Canvas
Create an active group of 2 or more objects.
Hover your mouse over the active group (notice the cursor).
Try to move the active group.
Expected Behavior
The group should actually move when trying to move it.
Actual Behavior
Does not move the group, just starts a new selection.
Possible Solution
I believe this is occurring because the transform on the group is being run twice.
During
canvas.findTarget
we sendcanvas._checkTarget
theactiveGroup
After which
canvas._checkTarget
sends theactiveGroup
tocanvas.isTargetTransparent
Inside of
canvas.isTargetTransparent
we set the transform and thenrender
the object, butrender
of a group sets the transform itself as well.I believe that we would need to add the second
noTransform
parameter to the group'srender
methodIf this is the correct assumption I should be able to submit a pull request for this problem. Just want to make sure I'm not overlooking something.
The text was updated successfully, but these errors were encountered: