ankidroid / ankidroid/Anki-Android

Some images can disable touch inputs

オープン
#21,263 コメント 4 件 リアクション 0 件 担当者 1 名 @DoomsCoder が担当を希望しています GitHub で見る
Needs Triage Reproduced
主要言語
Kotlin
スター
11.8k
フォーク
2.9k
平均マージ
2日 3時間
マージ済み PR(30日)
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 を短くまとめたダイジェスト。