Foundations
Haptics
When a Raft app vibrates, which of the 4 haptic tiers it plays, on which frame, and the moments that never vibrate, on iOS, Android and the web.
A vibration in Raft means one thing: something took effect. A long press was recognized, an action worked, a gesture passed its trigger, or a drag moved one step. Plain taps, sending, scrolling, and navigation stay silent, so people can trust a vibration when they feel one. Every vibration is one of 4 tiers, played with the platform's own feedback on the frame the screen settles into its new state.
The mobile app plays the tiers through RaftHaptics. The web plays only 2 threshold cases, on Android browsers (Platforms). The rules follow the mobile app's haptics plan, approved by Artea on 2026-12-02 (#proj-mobile:#467, #proj-mobile:bed33cf8), which keeps the restraint artin set for RaftHaptics (#proj-mobile:#50).
Principles
- Vibrate only at the moment something takes effect. One vibration means "it opened", "it worked", "it passed the trigger" or "it moved one step". A vibration on every tap would turn into noise, and then the one that matters would go unnoticed.
- 4 tiers, and no others. Every vibration is
longPress,threshold,tick, orresult(The four tiers). A new case picks one of these by its meaning; don't add a fifth tier or a pattern of your own. - On the frame that settles the screen. The vibration lands on the same frame as the animation that shows the new state, never later, when the finger lets go (Timing).
- Use the platform's feedback. Play each tier with the system's own feedback API, never a custom vibration pattern, so Raft feels like the rest of the phone and someone who turned haptics off feels nothing (Platforms).
- The screen always says it too. A vibration repeats what the screen shows; it never carries information alone (Accessibility).
The four tiers
- Play
thresholdon the frame the gesture crosses its trigger point, not when the finger lifts: the finger has to know before it lets go whether letting go will act. - Play
thresholdonce per crossing, and don't let a finger that moves back and forth on the line buzz again and again. In the mobile app the gesture keeps a small dead zone around the trigger point (hysteresis), and only a move clearly back out of it disarms the gesture. Where a gesture can be taken back, as a pull on Android or a swipe on a row can, crossing again after it was disarmed arms it again and playsthresholdagain. Where it latches, as a pull on iOS does (Navigation), it plays once. On the web, the pull and the swipe arm and disarm at the line itself (PullToRefresh). - Play
tickonce for each slot or step the drag enters, and nothing between steps or on release. A drag fast enough to cross several slots in one frame plays 1 tick, so a cheap motor doesn't blur them into one long buzz. - Play
tickfor something dragged, and for a tap only in the 3 decided cases in Where Raft vibrates. Any other discrete control that is only tapped, such as a playback-speed button, is a plain tap and stays silent: its new value is on screen at once. - Play
resultonly when the outcome can't be seen where the person is looking, or arrives after they lifted their finger: the clipboard doesn't change anything on screen, and a refusal that comes back later finds the person looking elsewhere. An error shown next to the button at once, while the person is still looking at it, doesn't vibrate.
Timing
The vibration and the animation that settles the screen land on the same frame, so the hand and the eye feel one event.
- Name that frame in the component's doc and in this page's table (Where Raft vibrates): the frame a menu appears, the frame a swipe's button grows across the row, the frame a pill pops.
- For a result that comes back from the server, the frame is the one that shows the result, not the tap that asked for it.
- With reduced motion, play on the frame the new state appears: the vibration stays when the animation is off.
- On iOS, prepare the feedback generator when a continuous gesture starts (a pull, a swipe, a drag, a slider), so the first
thresholdortickisn't late.
Where Raft vibrates
This table lists every place Raft vibrates. A surface not in it doesn't vibrate; adding one means adding its row here, with its tier and its frame.
Switches
A switch follows each platform's own switch. On iOS the system switch ticks when it flips, and people who use it every day feel a silent switch as fake, so Raft's switch plays tick there. On Android, Material's switch doesn't vibrate, and neither does Raft's. Checkboxes and radios don't vibrate on either platform: their new state is on screen at once. Checking a task done is the one checkbox that ticks, because it finishes a piece of work; choosing Done in the phone's status menu ticks the same way, being the same act (Kirby, 2026-11-29; Artea, 2026-12-02, #proj-mobile:bed33cf8).
Never vibrate
- Plain taps on buttons, rows, and links, apart from the 3 decided taps in Where Raft vibrates; sending a message; scrolling a page or a list; switching tabs. These are the most frequent things people do, and their result is on screen.
- Going back by swiping from the edge, and any other navigation. The system's own back swipe doesn't vibrate, and it is one of the gestures people make most.
- A sheet snapping between its heights. The sheet's height is on screen, and the system's sheets don't vibrate either.
- A discrete control that is only tapped, such as a playback-speed button.
- Menu items, apart from Copy. Saving, marking unread, and the rest show their result in place or in a toast.
- Form validation while the person types. A failure buzz must never hurry or scold someone who is still typing; only a submit refused later plays
result(false). - A new message arriving while the app is in the foreground. Getting someone's attention is a notification's job, and a person reading shouldn't be interrupted.
- Checkboxes and radios on every platform, and switches on Android (Switches).
Platforms
- In the mobile app, call
RaftHaptics, never the platform API directly, so every screen plays the same tier the same way. - Let the design system's gesture components play
thresholdfor a swipe on a row and a pull to refresh, not each page, so a new page that uses them vibrates the same way. - The desktop app never vibrates.
- On the web, only Android browsers can vibrate, and the web plays only the 2
thresholdcases it has: a pull to refresh passing its threshold (PullToRefresh) and a row swiped past the 60% point (Responsive layout). Both are a 10ms vibration,navigator.vibrate(10). Don't add others on the web.
Accessibility
- Respect the system setting. In the apps, someone who turned off haptics or touch feedback on their phone feels nothing from Raft: the platform APIs above follow that setting, so never work around it. On the web, the browser decides, and a page can't read the setting.
- Never let a vibration carry information alone. Every vibration in Where Raft vibrates repeats something the screen shows: the menu that opened, the armed indicator, "Copied", the error. Someone who feels nothing, on a device with no motor or with haptics off, misses nothing (Accessibility).
Related
- Motion: the animations a vibration lands with.
- Navigation: pull to refresh on each platform.
- Responsive layout: swiping a row to show its actions.
- Drag and drop: lifting and reordering.
- Accessibility: meaning never depends on one sense.