ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.8k stars 2.25k forks source link

[BUG]: Tapping on embeds (youtube for instance) with the tap gestures enabled answers the card #17056

Open Chepycou opened 2 months ago

Chepycou commented 2 months ago

Checked for duplicates?

Does it also happen in the desktop version?

What are the steps to reproduce this bug?

Enable tap gestures, open an anki card that holds an embed like for instance :

<iframe width="560" height="315" src="https://www.youtube.com/embed/hB7CDrVnNCs?si=IsIKzvt4SOk03vWu" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen=""></iframe>

tap on the video as in to play it

Expected behaviour

The video should play and the gesture should not trigger

Debug info

AnkiDroid Version = 2.18.4 (f867da96b8304edaebd0361326316bc7514f8cde)

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 13 (SDK 33)

ProductFlavor = full

Manufacturer = Fairphone

Model = FP4

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 13; FP4 Build/TKQ1.230127.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.71 Mobile Safari/537.36

ACRA UUID = 626c9491-cf72-4919-9ebf-74d0eb4fb413

FSRS Enabled = true

Crash Reports Enabled = false

(Optional) Anything else you want to share?

No response

Research

brishtibheja commented 2 months ago

This is also true for other elements like the media play button. It creates problems if you're using the Memrise card template that uses on-screen buttons for inputting text in answer box. If this can somehow be solved, it would be great.

BrayanDSO commented 2 months ago

Known issue. Will be solved with #14303

Chepycou commented 2 months ago

Sorry, looks like I didn't search well enough ! 🙇