mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-25 18:39:18 +01:00
Ported: Change auto to default in cursor css settings.
- jasonwinterpixel
6812e66f33
This commit is contained in:
parent
a1ec0dca97
commit
44381ae1d2
@ -173,7 +173,7 @@ const PandemoniumDisplayCursor = {
|
|||||||
$PandemoniumDisplayCursor__deps: ['$PandemoniumOS', '$PandemoniumConfig'],
|
$PandemoniumDisplayCursor__deps: ['$PandemoniumOS', '$PandemoniumConfig'],
|
||||||
$PandemoniumDisplayCursor__postset: 'PandemoniumOS.atexit(function(resolve, reject) { PandemoniumDisplayCursor.clear(); resolve(); });',
|
$PandemoniumDisplayCursor__postset: 'PandemoniumOS.atexit(function(resolve, reject) { PandemoniumDisplayCursor.clear(); resolve(); });',
|
||||||
$PandemoniumDisplayCursor: {
|
$PandemoniumDisplayCursor: {
|
||||||
shape: 'auto',
|
shape: 'default',
|
||||||
visible: true,
|
visible: true,
|
||||||
cursors: {},
|
cursors: {},
|
||||||
set_style: function(style) {
|
set_style: function(style) {
|
||||||
@ -184,7 +184,7 @@ const PandemoniumDisplayCursor = {
|
|||||||
let css = shape;
|
let css = shape;
|
||||||
if (shape in PandemoniumDisplayCursor.cursors) {
|
if (shape in PandemoniumDisplayCursor.cursors) {
|
||||||
const c = PandemoniumDisplayCursor.cursors[shape];
|
const c = PandemoniumDisplayCursor.cursors[shape];
|
||||||
css = `url("${c.url}") ${c.x} ${c.y}, auto`;
|
css = `url("${c.url}") ${c.x} ${c.y}, default`;
|
||||||
}
|
}
|
||||||
if (PandemoniumDisplayCursor.visible) {
|
if (PandemoniumDisplayCursor.visible) {
|
||||||
PandemoniumDisplayCursor.set_style(css);
|
PandemoniumDisplayCursor.set_style(css);
|
||||||
@ -192,7 +192,7 @@ const PandemoniumDisplayCursor = {
|
|||||||
},
|
},
|
||||||
clear: function() {
|
clear: function() {
|
||||||
PandemoniumDisplayCursor.set_style('');
|
PandemoniumDisplayCursor.set_style('');
|
||||||
PandemoniumDisplayCursor.shape = 'auto';
|
PandemoniumDisplayCursor.shape = 'default';
|
||||||
PandemoniumDisplayCursor.visible = true;
|
PandemoniumDisplayCursor.visible = true;
|
||||||
Object.keys(PandemoniumDisplayCursor.cursors).forEach(function(key) {
|
Object.keys(PandemoniumDisplayCursor.cursors).forEach(function(key) {
|
||||||
URL.revokeObjectURL(PandemoniumDisplayCursor.cursors[key]);
|
URL.revokeObjectURL(PandemoniumDisplayCursor.cursors[key]);
|
||||||
|
Loading…
Reference in New Issue
Block a user