Skip to content

Short vibrate on Android long-press #256

Closed

Description

@HMarzban

Parent

#249 Deepen the installed PWA.

What to build

When a chat message long-press opens, call navigator.vibrate for about 10–20 ms if the API exists.

Acceptance criteria

  • Android Chrome: one short vibrate on that long-press only.
  • Feature-detect. Missing API is a no-op. No toast.
  • iOS and macOS Safari: no vibrate. WebKit does not ship this API. Do not fake it.

Out of scope

  • Vibrate on every tap
  • A haptic design kit
  • Capacitor or a native wrapper

Activity

  1. added
    enhancement
    on Sep 9, 2026
  2. added this to the v2.3.0 milestone on Oct 24, 2026
  3. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    Status, 2026-11-03. Built in b553e9a, which ships in v2.1.0. Left:

  4. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    #355 device check, 2026-11-03. Run on the local stack, production build, in the installed app on an Android emulator (Pixel 9, Android 17, Chrome 145). The maintainer accepts emulator results for this row. The emulator has no motor, so navigator.vibrate was wrapped through DevTools and each call logged.

    Chat message bubble, in order:

    • Tap: no call.
    • Sliding hold (moves 160 px over 650 ms): no call.
    • Scroll swipe in the feed: no call.
    • Hold 650 ms: exactly one call, vibrate(10), and the message menu opened (reaction bar, Reply, Copy link, Bookmark, Copy to doc, Reply in thread).

    An earlier run in a Chrome tab gave the same result: one vibrate(10) 504 ms after touchstart. The row left in the 11-03 status passes, so this closes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureMobileUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions