mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
Show defaultCursor for none selectable objects
If none selectable objects hovered show defaultCursor instead of hoverCursor.
This commit is contained in:
parent
75a71e3b51
commit
5ab8f217a9
1 changed files with 2 additions and 1 deletions
|
|
@ -826,6 +826,7 @@
|
|||
}
|
||||
|
||||
var hoverCursor = target.hoverCursor || this.hoverCursor,
|
||||
defaultCursor = target.defaultCursor || this.defaultCursor,
|
||||
activeSelection = this._activeObject && this._activeObject.type === 'activeSelection' ?
|
||||
this._activeObject : null,
|
||||
// only show proper corner when group selection is not active
|
||||
|
|
@ -833,7 +834,7 @@
|
|||
&& target._findTargetCorner(this.getPointer(e, true));
|
||||
|
||||
if (!corner) {
|
||||
this.setCursor(hoverCursor);
|
||||
this.setCursor(target.selectable ? hoverCursor : defaultCursor);
|
||||
}
|
||||
else {
|
||||
this.setCursor(this.getCornerCursor(corner, target, e));
|
||||
|
|
|
|||
Loading…
Reference in a new issue