According to this AnkiDroid PR feat(new reviewer): gestures by BrayanDSO · Pull Request #18444 · ankidroid/Anki-Android · GitHub it has become possible to prevent gesture detection on a certain element.
Unfortunately I can’t seem to find a way to make it work.
Contents of a front card side (note the tappable class and onclick event handler, which, according to PR changes, are both expected to terminate gesture detection if I understand correctly):
<div class="tappable" style="width: 400px; height: 200px; border: 1px solid #ccc; padding: 10px; overflow: auto;" onclick="console.log('clicked')">
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
sit amet eros blandit, tristique justo vitae, bibendum purus.
Phasellus vitae augue in magna varius efficitur. Sed imperdiet
nisi et ipsum facilisis, nec venenatis ligula vulputate.
Nulla facilisi. Fusce convallis enim at turpis scelerisque,
nec faucibus dolor feugiat. Vestibulum ante ipsum primis in
faucibus orci luctus et ultrices posuere cubilia curae;
Suspendisse potenti. Mauris sollicitudin arcu nec dui
vulputate, non tempor lacus finibus.
</p>
<p>
Aliquam erat volutpat. Nam sed sapien sed purus gravida
feugiat. Pellentesque habitant morbi tristique senectus et
netus et malesuada fames ac turpis egestas. Donec gravida
libero non lectus facilisis, eget vehicula leo gravida.
Integer quis orci nec enim tincidunt lacinia.
</p>
</div>
When I perform previously defined gesture “Swipe Up” to undo the card on the element, it is still detected (same for “Swipe Left” to delete the card): https://github.com/user-attachments/assets/89d9ea1c-bfbe-4c4a-a484-fdc5def7751e (video attached through GitHub link)
Do I not understand the purpose of the PR correctly?
Debug info:
AnkiDroid Version = 2.22.3 (4f2ec681da36b8307a865f05192498b8425adf0f)
Backend Version = 0.1.60-anki25.07.5 (25.07.5 7172b2d26684c7ef9d10e249bd43dc5bf73ae00c)
Android Version = 15 (SDK 35)
ProductFlavor = play
Device Info = samsung | samsung | p3q | p3qsqw | SM-G998U | qcom
Webview User Agent = Mozilla/5.0 (Linux; Android 15; SM-G998U Build/AP3A.240905.015.A2; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/140.0.7339.51 Mobile Safari/537.36
ACRA UUID = 454526a9-f796-4cfb-a1d9-f32d2a5890a6
FSRS = 4.1.1 (Enabled: true)
Crash Reports Enabled = true