Skip to content

Comments

Add haptic feedback for spacebar and backspace swipe gestures#1876

Open
liketheduck wants to merge 2 commits intofuto-org:masterfrom
liketheduck:fix/747-haptic-spacebar-cursor
Open

Add haptic feedback for spacebar and backspace swipe gestures#1876
liketheduck wants to merge 2 commits intofuto-org:masterfrom
liketheduck:fix/747-haptic-spacebar-cursor

Conversation

@liketheduck
Copy link

Summary

Adds per-step haptic feedback when swiping the spacebar to move the cursor and when swiping backspace to delete. Uses the existing AudioAndHapticFeedbackManager with a short 5ms vibration pulse per cursor step, gated by the user's vibration preference (settingsValues.mVibrateOn).

Closes #747. Also addresses the related request in #693 and #862 (duplicates merged into #747) and the comment requesting the same treatment for gesture delete.

Changes

  • PointerTracker.java: Added CURSOR_MOVE_VIBRATION_DURATION constant (5ms) and haptic feedback calls after onMovePointer() (spacebar swipe) and onMoveDeletePointer() (backspace swipe).

Test plan

  • Verify haptic pulse is felt on each cursor step when swiping spacebar
  • Verify haptic pulse is felt on each delete step when swiping backspace
  • Verify no vibration occurs when haptic feedback is disabled in settings
  • Verify no behavioral change to cursor movement or deletion logic

Co-authored with Claude Code.

liketheduck and others added 2 commits February 11, 2026 11:26
Vibrate briefly (5ms) on each cursor step when swiping the spacebar to
move the cursor, giving tactile confirmation of character-by-character
movement. The vibration respects the user's haptic feedback setting and
does not fire during language-swipe mode.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extends the spacebar cursor haptic feedback to also cover the backspace
swipe gesture, using the same vibration duration and settings check.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Haptic Vibration While Scrolling Between Letters Using Spacebar

3 participants