ankidroid / ankidroid/Anki-Android

CSS `:hover` can disable gestures

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

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. Replace the basic note type's template with the code below.
2. Add some gestures like tapping the bottom third of the screen to show the answer.
3. Make a basic note and open its card in the study screen.
4. Pinch to zoom.
5. Tap the box.
6. Tap the bottom of the screen.

Sometimes, the gestures get disabled. Zooming out or using multi-finger gestures twice can re-enable them.

Code

**Front template**

```html
{{Front}}



















The quick brown fox jumps over the lasy dog.
The quick brown fox jumps over the lasy dog.
The quick brown fox jumps over the lasy dog.
The quick brown fox jumps over the lasy dog.

```

**Back template**

```html
{{FrontSide}}


{{Back}}
```

**Styling**

```css
.card {
font-family: arial;
font-size: 20px;
line-height: 1.5;
text-align: center;
color: black;
background-color: white;
}

.box:hover {
background-color: red;
}

.box {
border: 1px solid blue;
}
```

https://github.com/user-attachments/assets/4bde0089-6c01-4592-ad20-968b33afd77a

### Expected behaviour

The gestures should not get disabled.

### Debug info

```text
AnkiDroid Version = 2.24.0 (ebcf8e0e34921628b9b8a496c66ffd4adbb3705f)
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 | 777812003]: Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/148.0.7778.120 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?

I couldn't reproduce this in the old study screen.

### Research

- [x] I have checked the [manual](https://ankidroid.org/docs/manual.html) 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.