mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-04 05:01:37 +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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user