Skip to content

CSS :hover can disable gestures #21045

@ZornHadNoChoice

Description

@ZornHadNoChoice

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • 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

{{Front}}
<br><br>
<br><br>
<br><br><br><br><br><br><br><br><br><br><br>
<div class=box>
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.
</div>

Back template

{{FrontSide}}

<hr id=answer>

{{Back}}

Styling

.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;
}
Screenrecorder-2026-05-15-04-04-08-970.mp4

Expected behaviour

The gestures should not get disabled.

Debug info

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions