Skip to content

Commit 6f0f714

Browse files
authored
Merge pull request #854 from champasaur/ie-cursor-fix
Internet Explorer cursor fix
2 parents 4d16f6d + a43ddaf commit 6f0f714

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
@@ -805,10 +805,11 @@ this.createjs = this.createjs||{};
805805
var list = this._mouseOverTarget = [];
806806

807807
// generate ancestor list and check for cursor:
808+
// Note: Internet Explorer won't update null or undefined cursor properties
808809
t = target;
809810
while (t) {
810811
list.unshift(t);
811-
if (!cursor) { cursor = t.cursor; }
812+
if (!cursor && t.cursor) { cursor = t.cursor; }
812813
t = t.parent;
813814
}
814815
this.canvas.style.cursor = cursor;

0 commit comments

Comments
 (0)