Skip to content

Conversation

@dergigi
Copy link
Owner

@dergigi dergigi commented Nov 5, 2025

Replace mouseup/touchend event handlers with selectionchange event listener for more reliable mobile text selection detection. This fixes the issue where the highlight button required an extra tap to become active on mobile devices by providing immediate feedback when text is selected.

  • Extract selection checking logic into shared checkSelection function
  • Use selectionchange event with requestAnimationFrame for immediate detection
  • Remove unused React import from VideoEmbedProcessor

…etection

Replace mouseup/touchend handlers with selectionchange event listener
for more reliable mobile text selection detection. This fixes the issue
where the highlight button required an extra tap to become active on
mobile devices.

- Extract selection checking logic into shared checkSelection function
- Use selectionchange event with requestAnimationFrame for immediate detection
- Remove onMouseUp and onTouchEnd props from VideoEmbedProcessor
- Simplify code by eliminating separate mouse/touch event handlers
@vercel
Copy link

vercel bot commented Nov 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boris Ready Ready Preview Comment Nov 5, 2025 10:07pm

@dergigi dergigi self-assigned this Nov 5, 2025
@dergigi dergigi merged commit e736c9f into master Nov 5, 2025
2 checks passed
@dergigi dergigi deleted the mobile-highlighting branch November 5, 2025 22:07
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.

2 participants