ankidroid / ankidroid/Anki-Android

Some images can disable touch inputs

未关闭
#21,263 4 条评论 0 个 reaction 已指派 1 人 已被 @DoomsCoder 认领 在 GitHub 查看
Needs Triage Reproduced
主要语言
Kotlin
星标
11.8k
派生
2.9k
平均合并
2 天 3 小时
30 天内合并 PR
171

描述

### 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](https://github.com/user-attachments/files/28893064/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

```text
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](https://docs.ankidroid.org/) and the [FAQ](https://github.com/ankidroid/Anki-Android/wiki/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](https://docs.ankidroid.org/manual.html#betaTesting))

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。