mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 11:12:35 +02:00
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:
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user