aboutsummaryrefslogtreecommitdiffstats
path: root/static/deck.css
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-10 16:38:27 +0100
committerDanilo M. <danix@danix.xyz>2026-11-10 16:38:27 +0100
commita7200dbff7f38c19e9e0f31f786e56ba9fa4565d (patch)
tree916dc84d4cb01738252fb2545e837183b7a596f1 /static/deck.css
parentcdb96a6fcf60716b5fb96cc999d452e75b75ed42 (diff)
downloaddeck-it-a7200dbff7f38c19e9e0f31f786e56ba9fa4565d.tar.gz
deck-it-a7200dbff7f38c19e9e0f31f786e56ba9fa4565d.zip
fix: swiping between tabs works on the tablet
#tab-body scrolls, so Chrome claimed every moving finger as a pan and sent pointercancel, and the shell dropped the swipe before pointerup: it never worked on touch. touch-action: pan-y keeps vertical scrolling the browser's and sideways moves the page's. Swipes may now also start on buttons (most of the Windows tab is cards); only sliders and the dashboard's drag and resize handles keep theirs, and a recognised swipe swallows the click it ends in. Checked with adb swipes: empty space and a window card both change tab, the card's window is not focused, and vertical scrolling still works. Also hide the OBS tab's empty blocks while OBS is off: .deck-cols set display: grid, which overrode their hidden attribute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/deck.css')
-rw-r--r--static/deck.css3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/deck.css b/static/deck.css
index 1ec72b6..0929684 100644
--- a/static/deck.css
+++ b/static/deck.css
@@ -78,7 +78,7 @@ body {
.tabs button .nf { font-size: 1.5rem; line-height: 1; margin-right: 6px; } /* the glyphs draw past their advance */
.tabs button:not(.active):not(.named) span { display: none; }
-#tab-body { flex: 1; min-height: 0; overflow: auto; }
+#tab-body { flex: 1; min-height: 0; overflow: auto; touch-action: pan-y; } /* sideways moves stay ours: the swipe */
.tab-panel {
padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
@@ -429,6 +429,7 @@ select {
.deck-btn:active { background: var(--udt-surface1); }
.deck-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
+.deck-cols[hidden] { display: none; }
@media (max-width: 900px) { .deck-cols { grid-template-columns: 1fr; } }
.deck-block {