Add swipe-to-switch-printer and auto-navigate on tag scan

Swiping left/right on the SpoolBuddy touchscreen now cycles through
  online printers instead of triggering browser back/forward navigation.
  Uses touch-action: pan-y to suppress Chromium's native swipe history
  gesture. Auto-navigates to dashboard when a new NFC tag is detected
  on any other page, with edge detection so a persistent tag doesn't
  block manual navigation. Also wakes the screen if blanked.
This commit is contained in:
maziggy
2026-03-26 10:47:27 +01:00
parent ceb599ec00
commit f6d760bb3e
3 changed files with 3 additions and 3 deletions
@@ -168,7 +168,7 @@ export function SpoolBuddyLayout() {
<>
<div
className="w-screen h-screen bg-bambu-dark text-white flex flex-col overflow-hidden"
style={{ ...brightnessStyle, overscrollBehaviorX: 'none' }}
style={{ ...brightnessStyle, overscrollBehaviorX: 'none', touchAction: 'pan-y' }}
onTouchStart={handleTouchStart}
onTouchEnd={handleTouchEnd}
>
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- Splash screens for iOS -->
<link rel="apple-touch-startup-image" href="/img/android-chrome-512x512.png" />
<script type="module" crossorigin src="/assets/index-DRDn9t3d.js"></script>
<script type="module" crossorigin src="/assets/index-DIWh1_Mq.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CZLTApPU.css">
</head>
<body>