Show defaultCursor for none selectable objects

If none selectable objects hovered show defaultCursor instead of hoverCursor.
This commit is contained in:
Stefan Kienzle 2018-02-12 13:59:58 +01:00 committed by GitHub
parent 75a71e3b51
commit 5ab8f217a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));