[Bug]: FixedLayout Group Prevents Selection of Elements Outside Its Bounds. #10290
-
CheckList
Version6.0.2 In What environments are you experiencing the problem?Chrome Node Version (if applicable)None Link To Reproductionhttps://jsfiddle.net/emd71hjo/7/ Steps To Reproduce
Expected BehaviorThe rectangle, despite being outside the group's bounds, should remain selectable on the canvas. Actual BehaviorThe rectangle cannot be selected on the canvas, suggesting the group limits interaction to elements within its defined [300, 300] boundaries. Error Message & Stack TraceNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Your expected behaviour is wrong. A fixed group is limited to its size, and not the inner object is not selectable outside those bounds. I don't see how you would select something that is invisible sitting on top maybe of a visible object, it don't see that as a great default behavior. |
Beta Was this translation helpful? Give feedback.
In findTarget, replace this._objects with all layers on the canvas (recursive search is required). This way, the rectangle in this scenario can be selected.