feat: v0.12.1 touch-screen scrolling (#64)
- Terminal: a one-finger vertical swipe becomes wheel reports at the touch point, so tmux scrolls its history like the mouse wheel; a flick keeps going and eases out. Taps still focus and reach tmux's status bar; swipes never land on the status line. Without mouse tracking it scrolls xterm's own buffer. touch-action: none on the terminal. - Resize handles: touch-action: none and wider grab areas on touch screens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Rk7Hm4Ti8HuDkb7CTQhWhH
This commit is contained in:
1 parent
20134c1e58
commit
18a6b0d7ff
3 files changed
+127
-1
No files matched your search
+8
-1
@@ -186,6 +186,7 @@ body.dd-app::after {
|
||||
|
||||
.dd-terminal .xterm {
|
||||
height: 100%;
|
||||
touch-action: none; /* swipes scroll tmux (term.js wireTouchScroll), not the page */
|
||||
}
|
||||
|
||||
.dd-terminal .xterm-viewport {
|
||||
@@ -749,6 +750,7 @@ body.dd-resizing .dd-md-frame { pointer-events: none; }
|
||||
left: calc(-1 * var(--dd-gap) - 2px);
|
||||
width: calc(var(--dd-gap) + 6px);
|
||||
cursor: col-resize;
|
||||
touch-action: none; /* a finger drag resizes instead of scrolling */
|
||||
z-index: 3;
|
||||
}
|
||||
.dd-files-resizer:hover,
|
||||
@@ -796,7 +798,12 @@ body.dd-resizing .dd-files-resizer { background: linear-gradient(90deg, transpar
|
||||
.dd-files.explorer-hidden .dd-explorer,
|
||||
.dd-files.explorer-hidden .dd-explorer-resizer,
|
||||
.dd-files.is-narrow .dd-explorer-resizer { display: none; }
|
||||
.dd-explorer-resizer { flex: 0 0 4px; margin-left: -2px; margin-right: -2px; cursor: col-resize; z-index: 2; }
|
||||
.dd-explorer-resizer { flex: 0 0 4px; margin-left: -2px; margin-right: -2px; cursor: col-resize; touch-action: none; z-index: 2; }
|
||||
/* Touch screens (devdesk#64): wider grab areas for a finger. */
|
||||
@media (any-pointer: coarse) {
|
||||
.dd-explorer-resizer { flex-basis: 14px; margin-left: -7px; margin-right: -7px; }
|
||||
.dd-files-resizer { left: calc(-1 * var(--dd-gap) - 6px); width: calc(var(--dd-gap) + 14px); }
|
||||
}
|
||||
.dd-explorer-resizer:hover { background: var(--accent-cyan); }
|
||||
.dd-explorer-views { display: flex; border-bottom: 1px solid var(--border-dim); }
|
||||
.dd-explorer-views button[role="tab"] {
|
||||
|
||||
Reference in new issue
Block a user