Skip to content

Conversation

TheEntropyShard
Copy link
Contributor

This changes onclick back to onmousedown by moving the event listener to the button wrapper. The e.preventDefault() line is needed to disable text selection. Though, this pull already fixes the text selection issue, I decided to include my "fix" anyway.

@rexim
Copy link
Member

rexim commented Sep 22, 2025

Thank you! Committed at c665ba1

@rexim rexim closed this Sep 22, 2025
@TheEntropyShard
Copy link
Contributor Author

@rexim Did you forget or intentionally removed the e.preventDefault() call? On the deployed version the counter text is still being selected when clicking fast.

@TheEntropyShard
Copy link
Contributor Author

Another PR was just (kinda) merged which seems to actually fix selection.

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