mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 06:24:17 +00:00
fix incorrect remote cursor scaling and make local cursor visible again after it has been moved after being hidden due to inactivity
This commit is contained in:
parent
bf189b2d48
commit
a1a55804cb
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,6 @@ function handleMarker(evt) {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
if (Tools.showMarker) {
|
||||
moveMarker(message.data);
|
||||
}
|
||||
|
@ -146,6 +145,7 @@ function moveMarker(message) {
|
|||
Tools.svg.appendChild(cursor);
|
||||
//cursor.setAttributeNS(null, "r", Tools.getSize());
|
||||
cursor.r.baseVal.value=Tools.getSize()/2;
|
||||
cursor.setAttributeNS(null, "visibility", "visible");
|
||||
cursor.style.transform = "translate(" + message.x + "px, " + message.y + "px)";
|
||||
}
|
||||
|
||||
|
@ -168,7 +168,7 @@ function moveCursor(message) {
|
|||
}
|
||||
cursor.setAttributeNS(null, "fill", message.c);
|
||||
//TODO: scaling is broken on mobile
|
||||
cursor.setAttributeNS(null, "r", (message.s/2)*Tools.getScale());
|
||||
cursor.setAttributeNS(null, "r", (message.s/2));
|
||||
cursor.setAttributeNS(null, "visibility", "visible");
|
||||
cursor.style.transform = "translate(" + message.x + "px, " + message.y + "px)";
|
||||
|
||||
|
|
Loading…
Reference in a new issue