Change auto to default in cursor css settings.
This commit is contained in:
parent
ec21ac518a
commit
6812e66f33
@ -173,7 +173,7 @@ const GodotDisplayCursor = {
|
|||||||
$GodotDisplayCursor__deps: ['$GodotOS', '$GodotConfig'],
|
$GodotDisplayCursor__deps: ['$GodotOS', '$GodotConfig'],
|
||||||
$GodotDisplayCursor__postset: 'GodotOS.atexit(function(resolve, reject) { GodotDisplayCursor.clear(); resolve(); });',
|
$GodotDisplayCursor__postset: 'GodotOS.atexit(function(resolve, reject) { GodotDisplayCursor.clear(); resolve(); });',
|
||||||
$GodotDisplayCursor: {
|
$GodotDisplayCursor: {
|
||||||
shape: 'auto',
|
shape: 'default',
|
||||||
visible: true,
|
visible: true,
|
||||||
cursors: {},
|
cursors: {},
|
||||||
set_style: function (style) {
|
set_style: function (style) {
|
||||||
@ -184,7 +184,7 @@ const GodotDisplayCursor = {
|
|||||||
let css = shape;
|
let css = shape;
|
||||||
if (shape in GodotDisplayCursor.cursors) {
|
if (shape in GodotDisplayCursor.cursors) {
|
||||||
const c = GodotDisplayCursor.cursors[shape];
|
const c = GodotDisplayCursor.cursors[shape];
|
||||||
css = `url("${c.url}") ${c.x} ${c.y}, auto`;
|
css = `url("${c.url}") ${c.x} ${c.y}, default`;
|
||||||
}
|
}
|
||||||
if (GodotDisplayCursor.visible) {
|
if (GodotDisplayCursor.visible) {
|
||||||
GodotDisplayCursor.set_style(css);
|
GodotDisplayCursor.set_style(css);
|
||||||
@ -192,7 +192,7 @@ const GodotDisplayCursor = {
|
|||||||
},
|
},
|
||||||
clear: function () {
|
clear: function () {
|
||||||
GodotDisplayCursor.set_style('');
|
GodotDisplayCursor.set_style('');
|
||||||
GodotDisplayCursor.shape = 'auto';
|
GodotDisplayCursor.shape = 'default';
|
||||||
GodotDisplayCursor.visible = true;
|
GodotDisplayCursor.visible = true;
|
||||||
Object.keys(GodotDisplayCursor.cursors).forEach(function (key) {
|
Object.keys(GodotDisplayCursor.cursors).forEach(function (key) {
|
||||||
URL.revokeObjectURL(GodotDisplayCursor.cursors[key]);
|
URL.revokeObjectURL(GodotDisplayCursor.cursors[key]);
|
||||||
|
Loading…
Reference in New Issue
Block a user