ankidroid / ankidroid/Anki-Android

Some images can disable touch inputs

Đang mở
#21,263 4 bình luận 0 reaction 1 người được giao Được @DoomsCoder nhận Xem trên GitHub
Needs Triage Reproduced
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

### 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))

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.