Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Some images can disable touch inputs

Open ZornHadNoChoice opened this issue 5 months ago • 4 comments

Checked for duplicates?

  • [x] This issue is not a duplicate

Does it also happen in the desktop version?

  • [x] This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

  1. Download no_touch_events.apkg.zip.
  2. Rename it to no_touch_events.apkg and import it into AnkiDroid.
  3. Open the deck in the new study screen.
  4. Show the answer.
  5. Double tap on the image but don't lift your finger after the second tap. Instead, wait for a few seconds.
  6. Do step 5 again.

Now you can't use any gestures and the HTML elements are not interactive (:hover doesn't work, links don't work, etc).

https://github.com/user-attachments/assets/7e6764da-2268-4ba0-a451-4011f2f68036

Expected behaviour

Touch inputs should work.

Debug info

AnkiDroid Version = 2.25.0alpha1 (98bddabfa055eb61e0b5f5ab2dfde43f3f174ee6)  
Backend Version = 0.1.64-anki25.09.2 (25.09.2 3890e12c9e48c028c3f12aa58cb64bd9f8895e30)  
Android Version = 13 (SDK 33)  
ProductFlavor = full  
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom  
WebView Info = [com.google.android.webview | 782709103]: Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/149.0.7827.91 Mobile Safari/537.36  
ACRA UUID = 4afc3b3f-e93f-4a66-bc71-2b9476ef9eb0  
FSRS = 5.1.0 (Enabled: true)  
Crash Reports Enabled = true

(Optional) Anything else you want to share?

  • This bug happens in the new study screen only.
  • This bug also happens in 2.24.0 and 2.23.3.
  • Some images don't cause this issue. It seems like only images with about the same aspect ratio as the one above are problematic.

Similar issues: https://github.com/ankidroid/Anki-Android/issues/21045 and https://github.com/ankidroid/Anki-Android/issues/19165.

Research

  • [x] I have checked the manual and the FAQ and could not find a solution to my issue
  • [x] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

ZornHadNoChoice avatar Jun 12 '26 18:06 ZornHadNoChoice

hey @criticalAY are you working on this issue ?

vinayakkumargupta avatar Sep 04 '26 17:09 vinayakkumargupta

Feel free to pick

criticalAY avatar Sep 04 '26 17:09 criticalAY

@david-allison i have raise a fix please check once

vinayakkumargupta avatar Sep 04 '26 18:09 vinayakkumargupta

I'd like to work on this issue. Could you assign it to me?

DoomsCoder avatar Sep 08 '26 20:09 DoomsCoder