Skip to content

Commit

Permalink
fix(ActiveSelection) renderControls order, parent after children (#9914)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaxGama authored Jun 10, 2024
1 parent 3d308ae commit c820dd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [next]

- fix(_renderControls): fixed render order so group controls are rendered over child objects [#9914](https://github.com/fabricjs/fabric.js/pull/9914)
- fix(filters): RemoveColor has missing getFragmentSource method ( typo ) [#9911](https://github.com/fabricjs/fabric.js/pull/9911)
- types(): Make event type explicit - non generic, and fix pattern fromObject type [#9907](https://github.com/fabricjs/fabric.js/pull/9907)

Expand Down
2 changes: 1 addition & 1 deletion src/shapes/ActiveSelection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ export class ActiveSelection extends Group {
) {
ctx.save();
ctx.globalAlpha = this.isMoving ? this.borderOpacityWhenMoving : 1;
super._renderControls(ctx, styleOverride);
const options = {
hasControls: false,
...childrenOverride,
Expand All @@ -246,6 +245,7 @@ export class ActiveSelection extends Group {
for (let i = 0; i < this._objects.length; i++) {
this._objects[i]._renderControls(ctx, options);
}
super._renderControls(ctx, styleOverride);
ctx.restore();
}
}
Expand Down

0 comments on commit c820dd6

Please sign in to comment.