# Prevention of gesture detection on AnkiDroid

**URL:** <https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548>\
**Category:** Help\
**Created:** [September 18, 2025, 5:27pm UTC](https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548 "2025-09-18T17:27:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![helitopia](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@helitopia](https://forums.ankiweb.net/u/helitopia)\
**Post date:** [September 18, 2025, 5:27pm UTC](https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548/1 "2025-09-18T17:27:10Z")

</div>

According to this AnkiDroid PR [feat(new reviewer): gestures by BrayanDSO · Pull Request #18444 · ankidroid/Anki-Android · GitHub](https://github.com/ankidroid/Anki-Android/pull/18444) 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):

```xml
<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](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:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Keks](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/keks/32/20537_2.png) [@Keks](https://forums.ankiweb.net/u/Keks)\
**Post date:** [September 18, 2025, 5:38pm UTC](https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548/2 "2025-09-18T17:38:32Z")

</div>

> [@helitopia](#):
>
> ```auto
> AnkiDroid Version = 2.22.3 (4f2ec681da36b8307a865f05192498b8425adf0f)  
> 
> ```

Have you turned on the “New study screen”?

---

<div class="post-metadata">

**Author:** ![helitopia](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@helitopia](https://forums.ankiweb.net/u/helitopia)\
**Post date:** [September 19, 2025, 4:48am UTC](https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548/3 "2025-09-19T04:48:44Z")

</div>

I didn’t actually.

Thank you, I was unaware of such requirement to make it work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [October 19, 2025, 4:48am UTC](https://forums.ankiweb.net/t/prevention-of-gesture-detection-on-ankidroid/66548/4 "2025-10-19T04:48:46Z")

</div>

Closed on October 19, 2025, 4:48am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
