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}
>