Better looking pointer (#943)

Instead of a crude circle, this makes it look more like a pointer. I manually tweaked the numbers until it looked like a pointer :)
This commit is contained in:
Christopher Chedeau 2020-03-14 12:08:45 -07:00 committed by GitHub
parent 668f8ec4a6
commit a6244e7602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,11 @@ export function renderScene(
for (const clientId in sceneState.remotePointerViewportCoords) { for (const clientId in sceneState.remotePointerViewportCoords) {
const { x, y } = sceneState.remotePointerViewportCoords[clientId]; const { x, y } = sceneState.remotePointerViewportCoords[clientId];
context.beginPath(); context.beginPath();
context.arc(x, y, 5, 0, 2 * Math.PI); context.moveTo(x, y);
context.lineTo(x + 1, y + 14);
context.lineTo(x + 4, y + 9);
context.lineTo(x + 9, y + 10);
context.lineTo(x, y);
context.fill(); context.fill();
context.stroke(); context.stroke();
} }