Skip to content
Snippets Groups Projects
Commit bf06d36f authored by baletiballo's avatar baletiballo
Browse files

Better scaling of the BrowserTab size

parent 74acae11
No related branches found
No related tags found
No related merge requests found
......@@ -534,8 +534,8 @@
document.body.appendChild(rectangle);
function followCursor(event) {
const cursorX = event.clientX;
const cursorY = event.clientY +5;
const cursorX = event.clientX - 10;
const cursorY = event.clientY - 10;
//console.log(`MouseEvent X: ${cursorX}, Y: ${cursorY}, Event type: ${event.type}`, event);
rectangle.style.left = `${cursorX}px`;
rectangle.style.top = `${cursorY}px`;
......
Subproject commit a78b5dc3cddfa920e90fba6bc6d309233ce16f2e
Subproject commit 7aeeb0b0251447ebac1034a9269833d462c41a2a
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment