-
Notifications
You must be signed in to change notification settings - Fork 48
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
Ability to tap words on Firefox Android #845
Comments
I started digging into this and I can see that tapping doesn't work anywhere any more. At least on desktop, it seems like the issue is that while the lookup is triggered correctly from the 10ten-ja-reader/src/content/content.ts Lines 553 to 554 in 68c599c
(Note that, per spec, the Given that I'm not quite sure why it ever worked (unless it only worked in Safari for some other reason), but it's probably not worth investigating either. I guess we could distinguish between mouse events and touch events but would we then end up interfering with selection actions? |
I implemented a fix for this in 0ca9032 based on testing how longs taps are pressed for. However, I think there might be an easier route where we re-use the browser's click detection. We can take advantage of the fact that |
I've implemented an alternative fix and I think it works pretty well. However, I'm a bit concerned that it might be annoying if users are used to dismissing the popup by tapping outside it. With this new behaviour, if they tap outside and happen to land on other Japanese text (very common in the case of something like Wikipedia or an e-book), then it will trigger another lookup. Instead, they'll have to try to tap the little x button in the top-right.
Update: That didn't work. We clear the popup in the |
Per a report on twitter it seems like you can't tap words in Firefox Android to look them up.
I seem to recall this working on iPhone but I just tried and indeed it doesn't work on Firefox Android.
Hopefully this still works on iOS and we just need to fix a compat issue to get it to work on Firefox Android 🤞
The text was updated successfully, but these errors were encountered: