Always initalize canvas.style in case of showing local cursors
This commit is contained in:
parent
5a9a81c075
commit
4dd16ad9d8
|
|
@ -19,7 +19,7 @@ export default class Cursor {
|
||||||
|
|
||||||
this._canvas = document.createElement('canvas');
|
this._canvas = document.createElement('canvas');
|
||||||
|
|
||||||
if (useFallback) {
|
// always initalize canvas.style in case of showing local cursors
|
||||||
this._canvas.style.position = 'fixed';
|
this._canvas.style.position = 'fixed';
|
||||||
this._canvas.style.zIndex = '65535';
|
this._canvas.style.zIndex = '65535';
|
||||||
this._canvas.style.pointerEvents = 'none';
|
this._canvas.style.pointerEvents = 'none';
|
||||||
|
|
@ -29,7 +29,6 @@ export default class Cursor {
|
||||||
this._canvas.style.WebkitUserSelect = 'none';
|
this._canvas.style.WebkitUserSelect = 'none';
|
||||||
// Can't use "display" because of Firefox bug #1445997
|
// Can't use "display" because of Firefox bug #1445997
|
||||||
this._canvas.style.visibility = 'hidden';
|
this._canvas.style.visibility = 'hidden';
|
||||||
}
|
|
||||||
|
|
||||||
this._position = { x: 0, y: 0 };
|
this._position = { x: 0, y: 0 };
|
||||||
this._hotSpot = { x: 0, y: 0 };
|
this._hotSpot = { x: 0, y: 0 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue