Touch gestures: pull to check for new items, swipe between items
- Pull the item list down from its top: checks the feed (or every feed, on All Subscriptions) for new items, which arrive as they do from the scan button. overscroll-behavior keeps the browser's own pull-to-reload out of it. - Swipe the item you are reading left for the next, right for the one before, or back to the list from the first. A vertical move is a scroll; something that scrolls sideways, or takes typing, keeps its own swipe. Touch events only, so a mouse never sets them off. Closes #22. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -467,7 +467,11 @@ input:focus,select:focus{outline:0;border-color:var(--accent)}
|
||||
grid-template-rows:minmax(90px,var(--listh,60%)) 7px 1fr;
|
||||
grid-template-areas:"list files" "grab grab" "detail detail";
|
||||
}
|
||||
#list{grid-area:list;overflow:auto;padding:0 14px 10px}
|
||||
#list{grid-area:list;overflow:auto;padding:0 14px 10px;overscroll-behavior-y:contain}
|
||||
/* Pull-to-refresh's note (gestures.ts). overscroll-behavior keeps the browser's own pull, which
|
||||
reloads the page, from starting on top of it. */
|
||||
#pulltip{display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;overflow:hidden;
|
||||
font-size:12px;color:var(--faint)}
|
||||
/* The selected item's files, beside the list, as the original's Files pane was. */
|
||||
#files{grid-area:files;overflow-y:auto;padding:8px 12px;border-left:1px solid var(--line);background:var(--panel)}
|
||||
/* Nothing selected, or an item with no files: the list takes the width. */
|
||||
|
||||
Reference in New Issue
Block a user