You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Default cursor fix for html5 export
This commit is contained in:
@@ -236,7 +236,7 @@ void DisplayServerJavaScript::mouse_move_callback(double p_x, double p_y, double
|
|||||||
const char *DisplayServerJavaScript::godot2dom_cursor(DisplayServer::CursorShape p_shape) {
|
const char *DisplayServerJavaScript::godot2dom_cursor(DisplayServer::CursorShape p_shape) {
|
||||||
switch (p_shape) {
|
switch (p_shape) {
|
||||||
case DisplayServer::CURSOR_ARROW:
|
case DisplayServer::CURSOR_ARROW:
|
||||||
return "auto";
|
return "default";
|
||||||
case DisplayServer::CURSOR_IBEAM:
|
case DisplayServer::CURSOR_IBEAM:
|
||||||
return "text";
|
return "text";
|
||||||
case DisplayServer::CURSOR_POINTING_HAND:
|
case DisplayServer::CURSOR_POINTING_HAND:
|
||||||
@@ -270,7 +270,7 @@ const char *DisplayServerJavaScript::godot2dom_cursor(DisplayServer::CursorShape
|
|||||||
case DisplayServer::CURSOR_HELP:
|
case DisplayServer::CURSOR_HELP:
|
||||||
return "help";
|
return "help";
|
||||||
default:
|
default:
|
||||||
return "auto";
|
return "default";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user