Browse Source

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.
maziggy 2 months ago
parent
commit
f6d760bb3e

+ 1 - 1
frontend/src/components/spoolbuddy/SpoolBuddyLayout.tsx

@@ -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 it is too large
+ 0 - 0
static/assets/index-DIWh1_Mq.js


+ 1 - 1
static/index.html

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

Some files were not shown because too many files changed in this diff