less-buggy sticky
This commit is contained in:
parent
9aa521d666
commit
3b2da051dc
3
track.js
3
track.js
|
@ -67,7 +67,6 @@ function player(color, pos) {
|
||||||
var l = document.getElementById("link");
|
var l = document.getElementById("link");
|
||||||
var positions = [];
|
var positions = [];
|
||||||
|
|
||||||
debug('up');
|
|
||||||
for (var i = 0; i < players.length; i += 1) {
|
for (var i = 0; i < players.length; i += 1) {
|
||||||
positions.push(players[i].pos);
|
positions.push(players[i].pos);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +74,7 @@ function player(color, pos) {
|
||||||
l.href = "#" + JSON.stringify(positions);
|
l.href = "#" + JSON.stringify(positions);
|
||||||
|
|
||||||
window.onmousemove = null;
|
window.onmousemove = null;
|
||||||
window.onclick = null;
|
e.onclick = mouseDown;
|
||||||
}
|
}
|
||||||
|
|
||||||
function mouseDown() {
|
function mouseDown() {
|
||||||
|
|
Loading…
Reference in New Issue