Skip to content

Prevent mobile input auto-zoom and add share-success haptic feedback - #6

Merged
workHMZ merged 1 commit into
mainfrom
copilot/add-vibration-on-share-success
Aug 15, 2026
Merged

Prevent mobile input auto-zoom and add share-success haptic feedback#6
workHMZ merged 1 commit into
mainfrom
copilot/add-vibration-on-share-success

Conversation

Copilot AI commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Mobile users were seeing unintended page zoom when focusing the text-share input, and there was no tactile feedback after a successful share. This update addresses both in the upload/share UX path.

  • Mobile zoom behavior

    • Increased text-share textarea font size from 15px to 16px in TextShare.vue to avoid iOS focus-triggered auto-zoom while preserving user zoom capability.
  • Share success feedback

    • Added a unified haptic cue in home/index.vue by triggering vibration in the shared success handler used by both text and file share flows.
    • Guarded with feature detection to avoid runtime issues on unsupported platforms.
  • Implementation sketch

    const triggerShareSuccessHaptic = () => {
      if (typeof navigator.vibrate === 'function') navigator.vibrate(35)
    }
    
    const handleShareSuccess = async (result: ShareResult) => {
      // ...existing success flow
      showShareDialog.value = true
      triggerShareSuccessHaptic()
    }

Co-authored-by: workHMZ <194442490+workHMZ@users.noreply.github.com>
Copilot AI changed the title Fix mobile zoom behavior and add share-success haptic feedback Prevent mobile input auto-zoom and add share-success haptic feedback Aug 15, 2026
Copilot AI requested a review from workHMZ August 15, 2026 03:43
@workHMZ
workHMZ requested a balanced review from Copilot August 15, 2026 04:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@workHMZ
workHMZ marked this pull request as ready for review August 15, 2026 05:16
@workHMZ
workHMZ merged commit b408c1a into main Aug 15, 2026
4 checks passed
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.

3 participants