This commit is contained in:
parent
2786fc97e9
commit
1c7f9b6f45
@ -187,7 +187,14 @@ function handler.onMouse(evt)
|
|||||||
case Event.MOUSE_MOVE:
|
case Event.MOUSE_MOVE:
|
||||||
if (cursor_img.style#display != "none" && keyboard_enabled) {
|
if (cursor_img.style#display != "none" && keyboard_enabled) {
|
||||||
cursor_img.style#display = "none";
|
cursor_img.style#display = "none";
|
||||||
handler.style#cursor = '';
|
}
|
||||||
|
if (!keyboard_enabled && handler.style#cursor) {
|
||||||
|
handler.style#cursor = undefined;
|
||||||
|
}
|
||||||
|
if (keyboard_enabled && !handler.style#cursor) {
|
||||||
|
if (cur_img) {
|
||||||
|
handler.style.cursor(cur_img, cur_hotx, cur_hoty);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case Event.MOUSE_WHEEL:
|
case Event.MOUSE_WHEEL:
|
||||||
@ -361,7 +368,6 @@ handler.setCursorPosition = function(x, y) {
|
|||||||
top: y + "px",
|
top: y + "px",
|
||||||
};
|
};
|
||||||
if (cursor_img.style#display == 'none') {
|
if (cursor_img.style#display == 'none') {
|
||||||
handler.style#cursor = 'none';
|
|
||||||
cursor_img.style#display = "block";
|
cursor_img.style#display = "block";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user