Skip to content

Commit

Permalink
fix-3482 (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Apr 22, 2017
1 parent aef7372 commit 31859a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mixins/object_interactivity.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,14 @@
* Draws a colored layer behind the object, inside its selection borders.
* Requires public options: padding, selectionBackgroundColor
* this function is called when the context is transformed
* has checks to be skipped when the object is on a staticCanvas
* @param {CanvasRenderingContext2D} ctx Context to draw on
* @return {fabric.Object} thisArg
* @chainable
*/
drawSelectionBackground: function(ctx) {
if (!this.selectionBackgroundColor || this.group || !this.active) {
if (!this.selectionBackgroundColor || this.group || !this.active ||
(this.canvas && !this.canvas.interactive)) {
return this;
}
ctx.save();
Expand Down

0 comments on commit 31859a1

Please sign in to comment.