Merge pull request #381 from Kienz/patch-1

Bugfix for controlsAboveOverlay (issue #380)
This commit is contained in:
Juriy Zaytsev 2013-01-15 06:40:58 -08:00
commit 3269e83628

View file

@ -1216,7 +1216,8 @@
if (this.controlsAboveOverlay &&
this.lastRenderedObjectWithControlsAboveOverlay &&
this.containsPoint(e, this.lastRenderedObjectWithControlsAboveOverlay)) {
this.containsPoint(e, this.lastRenderedObjectWithControlsAboveOverlay) &&
this.lastRenderedObjectWithControlsAboveOverlay._findTargetCorner(e, this._offset)) {
target = this.lastRenderedObjectWithControlsAboveOverlay;
return target;
}
@ -1539,4 +1540,4 @@
* @constructor
*/
fabric.Element = fabric.Canvas;
})();
})();