Skip to content

Commit a43ddaf

Browse files
authored
Internet Explorer cursor fix
Internet Explorer doesn't update cursor style if it is null or undefined. Fix so that when the cursor is updated, the incoming is checked for truthiness. If it is, use it, else keep it as an empty string.
1 parent 5f19f07 commit a43ddaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/easeljs/display/Stage.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,10 +800,11 @@ this.createjs = this.createjs||{};
800800
var list = this._mouseOverTarget = [];
801801

802802
// generate ancestor list and check for cursor:
803+
// Note: Internet Explorer won't update null or undefined cursor properties
803804
t = target;
804805
while (t) {
805806
list.unshift(t);
806-
if (!cursor) { cursor = t.cursor; }
807+
if (!cursor && t.cursor) { cursor = t.cursor; }
807808
t = t.parent;
808809
}
809810
this.canvas.style.cursor = cursor;

0 commit comments

Comments
 (0)