fix error spam about the cursor
This commit is contained in:
@@ -59,8 +59,6 @@ var audioInitialPlayback = false;
|
|||||||
var queuePos = null;
|
var queuePos = null;
|
||||||
var disconnected = false;
|
var disconnected = false;
|
||||||
|
|
||||||
document.onmousemove = updateCursorPosition;
|
|
||||||
|
|
||||||
function init()
|
function init()
|
||||||
{
|
{
|
||||||
switchExpansion();
|
switchExpansion();
|
||||||
@@ -230,17 +228,6 @@ function showSettings()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateCursorPosition(e)
|
|
||||||
{
|
|
||||||
if(cursor === undefined)
|
|
||||||
{
|
|
||||||
cursor = document.getElementById("cursor");
|
|
||||||
console.log('Setting cursor');
|
|
||||||
}
|
|
||||||
cursor.style.top = e.y + 'px';
|
|
||||||
cursor.style.left = e.x + 'px';
|
|
||||||
}
|
|
||||||
|
|
||||||
function adjustVolume()
|
function adjustVolume()
|
||||||
{
|
{
|
||||||
var slider = document.getElementById("volumeSlider");
|
var slider = document.getElementById("volumeSlider");
|
||||||
|
|||||||
Reference in New Issue
Block a user