Skip to content

Home: holding a folder lifts only the folder - #417

Draft
Joost-8 wants to merge 5 commits into
mainfrom
fix-home-folder-lift
Draft

Joost-8 wants to merge 5 commits into
mainfrom
fix-home-folder-lift

Conversation

@Joost-8

@Joost-8 Joost-8 commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

Not verified on device.

What changed

  • Our own drag on Home. Holding a notebook or folder lifts a scaled copy of its picture under the finger; there is no more iPad drag with the black box behind it. Drop it on a folder to move it there. The list scrolls by itself near its top or bottom edge (home-drag.ts).
  • Hold still longer to select. Holding still for about 0.9 s puts the item back and selects it, the same as Select items (hold-rest.ts, pure, tested). iPadOS's own long-press menu no longer opens over it.
  • The folder's ring follows the folder. A selected folder, or one under a dragged item, gets an accent outline around its whole shape, tab included, and a tinted fill, instead of a square box.
  • A repaint of Home waits while an item is held, so the card isn't taken from under the finger. A Pencil tap still opens a folder.
  • The tip "Drag into folders" is reworded in all 42 languages, plus a CHANGELOG line and a design ruling.

Proof

  • Real-Obsidian rig (mobile mode), finger touches over CDP:
    • Notebooks dragged onto Projects and University moved there.
    • Holding Projects still selected it and showed the selection bar.
    • A Pencil tap opened a folder.
    • The lifted folder's ghost is the folder art.
  • Unit tests for hold-rest.
  • npm run gates passes.

Test on the device

  1. On Home, hold a notebook until it lifts, then drag it onto a folder. It moves there, with no black box and no iPad menu.
  2. Hold a folder without moving it. After about a second it is selected, with an outline around the whole folder, tab included, and the selection bar appears.
  3. Tap a folder with the Pencil and with a finger. Both open it.

Not verified

  • On the iPad: the feel of the 0.9 s hold, the edge scrolling, and whether iPadOS still shows its own lift anywhere.
  • Open question: the Pencil drags at once on Home (no hold), so it cannot scroll the list. Keep it that way, or make it hold like the finger?

🤖 Generated with Claude Code

Joost-8 and others added 5 commits December 4, 2026 02:26
The folder's picture is the dragged element, so iPadOS lifts it alone
instead of the card's notebook-shaped cover box and name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Held over a folder, the accent ring and scale went on the cover box, the
same notebook-shaped box the lift showed. The ring is now a drop-shadow
on the folder picture. styles.css cap +6 for the rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…older ring follows the folder

A hold lifts a copy of the picture (folder or cover) that follows the
finger, scrolls the list at its edges and drops into folder tiles, rail
rows and Up. Holding still for 0.9 s puts it back and picks the item.
iPadOS's native lift drew a black backing CSS cannot reach, so Home no
longer uses HTML5 drag. A picked or targeted folder is outlined along its
whole shape, tab included, and tinted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eld paints, popouts)

- A Pencil tap on a card opens or picks it again: its synthetic click is
  not taken for a drag's end.
- A folder lifts its folder art, never its notebook-shaped cover box.
- The long-press menu is swallowed (capture) while a card is held or
  dragged and just after a hold picked.
- A still finger the iPad cancels while lifted picks, as the rest would.
- Home puts its repaints off while a card is pressed or dragged, so the
  touched card never leaves the page.
- PressDrag tests elements with isElement (popout windows).
- The Home tip says hold, then drag; hold still to select.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant