This commit is contained in:
KingKDot
2026-03-16 18:29:27 -05:00
parent 4b8a459d04
commit 1de951403c
5 changed files with 357 additions and 9 deletions
@@ -417,7 +417,7 @@ import { encodeMsgpack, decodeMsgpack } from "./msgpack-helpers.js";
});
kbdCtrl.addEventListener("change", function () {
if (kbdCtrl.checked) {
canvas.focus();
canvas.focus({ preventScroll: true });
}
pushInputToggles();
});
@@ -958,7 +958,7 @@ import { encodeMsgpack, decodeMsgpack } from "./msgpack-helpers.js";
});
canvas.addEventListener("mousedown", function (e) {
if (!mouseCtrl.checked) return;
canvas.focus();
canvas.focus({ preventScroll: true });
const pt = getCanvasPoint(e);
if (pt) {
pendingMove = pt;
@@ -985,7 +985,7 @@ import { encodeMsgpack, decodeMsgpack } from "./msgpack-helpers.js";
canvas.setAttribute("tabindex", "0");
canvas.addEventListener("click", function () {
canvas.focus();
canvas.focus({ preventScroll: true });
});
canvas.addEventListener("keydown", function (e) {
if (!kbdCtrl.checked) return;