Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use firefox native click behavior #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seanjennings960
Copy link
Owner

@seanjennings960 seanjennings960 commented Mar 7, 2022

I was testing out lusakasa#337, but noticed that it broke the normal clicking. So I did a bit of snooping.

I'm just looking at all this code for the first time so could be entirely off-base, but seems like the click event should still be passed through to use Firefox's native click behavior. Then, the other work-arounds to manually implement click behavior can be conditioned upon the firefox version.

Borrowed version-checking code from lusakasa#337. The firefoxNoNativeClick const is duplicated between files which is clearly distasteful. Suggestions welcomed.

As far as I can tell on my machine (Ubuntu 20.04 and Firefox 96), things in are now working quite smoothly. Although, I'd be surprised if I'm not glossing over any nuances.

Happy to PR to parent repo if desired.

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.

1 participant