~smitop/eigen.fun

e9d9d7123f0c5e473f5e9084dc171f9c9022ef69 — Smitty 3 years ago f2b9d00
try to hide navbar on iOS
1 files changed, 3 insertions(+), 0 deletions(-)

M public/script.js
M public/script.js => public/script.js +3 -0
@@ 496,6 496,9 @@ document.addEventListener("DOMContentLoaded", () => {
    resize();
    window.addEventListener("resize", resize, { passive: true });

    // try to get iOS to hide navbar
    window.scrollTo(0, 1);

    can.addEventListener("mousedown", e => {
        dragStart([e.offsetX, e.offsetY]);
    }, { passive: true });