# New-tab Launchpad

The new tab is a launcher laid out and handled like macOS Launchpad: a 7 × 5 grid of icons on pages, a search field, folders and an edit mode. Where Launchpad has an answer, the launcher takes it rather than inventing one.

| Action | What happens |
| --- | --- |
| Two fingers on a trackpad | The pages follow the fingers, at most a page, with a rubber band past the ends. Let go, they settle on the next page if they went far enough or were flicked, else back. |
| Mouse dragged across empty space | The same as two fingers: the pages follow the pointer and settle on release. A press that moves under 6 px stays a click. |
| Mouse wheel | One notch turns a whole page at once; a held spin turns one page every 280 ms |
| ⌘ arrow, dot | A whole page at once |
| Arrow keys, Return | Move the selection, crossing to the next page at the row's end, and open it |
| Typing | Goes to the search field; results replace the pages |
| Option held | The icons wobble while it is held and stop when it is let go |
| Long press, or dragging an icon | Edit mode, kept until Done, Escape or a click on empty space |
| Icon dragged | Moves at once, no hold first. On another icon's left half it goes before that icon, on its right half after it, and others make room; held on its centre it makes or joins a folder; held at a side or over a dot it turns to that page; past the last page it starts a new one. Let go off the grid after the pages turned, it lands at the end of the page on screen. |
| Folder | Opens over the blurred pages, with its name editable. Dragging an icon out of the panel takes it out of the folder. |

## Decisions

- Pages follow the pointer and the fingers, while a wheel notch or key turns a whole page: Launchpad and paging scroll views on macOS do the same, and a desktop pointer drag that does nothing reads as broken.
- Wheel events do not name their device. A notch is a line or page delta, a fractional pixel delta (macOS mouse acceleration), or an event with nothing after it for 34 ms; a trackpad sends one every frame. A stream that never moved sideways and stops without momentum is a fast-spun wheel and turns a page.
- Before or after an icon is decided by its middle, so the icon beside the gap stays put until the pointer crosses it; over an icon's body the icons wait 450 ms before making room, so a pointer heading for the centre can make a folder.
- Dragging an icon starts edit mode without a long press first, as on Launchpad with a mouse.
- Option shows edit mode only while held, so a quick look at which icons can go needs no Done.

**Code and verification**

| Item | Where |
| --- | --- |
| Launcher | `apps/web/components/center-tabs/pages/launchpad/launchpad.tsx`: dnd-kit for icon drags, `wheel-gestures` for trackpad phases, pointer events for mouse paging |
| Layout | `apps/web/lib/tabs/launchpad/launchpad-layout.ts`, tested in `apps/web/tests/tabs/launchpad-layout.test.mjs` |

## Implementation status

Implemented.

[Center tabs and split layout](https://fzkuji.github.io/OpenProgram/docs/reference/design/ui/workspace/center-tabs-and-split-layout.html)
