# Usercard cloak not disappears on touchstart

**URL:** https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061
**Category:** UX
**Tags:** mobile, user-card
**Created:** [July 29, 2024, 4:09pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061 "2024-07-29T16:09:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [July 29, 2024, 4:09pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/1 "2024-07-29T16:09:59Z")

</div>

Hello 👋

I noticed on mobile (Android 10) when I open a usercard and then scroll the page the (backdrop) cloak still there. Earlier it disappeared with usercard when I started to scroll the page. Now it requires an other tap or tapping outside the usercard to dissapears it.

Thanks 🙂

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [January 9, 2025, 3:35pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/2 "2025-01-09T15:35:49Z")

</div>

I encountered this slightly annoying issue as well.

> [@Don](#):
>
> Now it requires an other tap or tapping outside the usercard to dissapears it.

This is the annoying part since the overlay prevents us from interacting with the interface and requires us to tap while the card has already been closed.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 18, 2026, 12:28pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/3 "2026-02-18T12:28:37Z")

</div>

Replacing `mousedown` with `pointerdown` in [discourse/frontend/discourse/app/components/card-contents-base.js at d056c1e358d1cb823632aa4a8c51a42e911969b3 · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/d056c1e358d1cb823632aa4a8c51a42e911969b3/frontend/discourse/app/components/card-contents-base.js#L109) seems to fix the issue.

Those event weren’t compatible with [Safari until 2019](https://developer.mozilla.org/en-US/docs/Web/API/Element/pointerdown_event#browser_compatibility), so I guess we could use them? Unless there are caveats I’m unaware of.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 23, 2026, 6:54pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/4 "2026-02-23T18:54:25Z")

</div>

Thanks for the PR, it is now merged.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [February 24, 2026, 11:48am UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/5 "2026-02-24T11:48:24Z")

</div>

Sadly my pr introduces a new bug after all 😢

When you touch outside the card, the event passes through the cloak and trigger anything that can be clicked beneath.  
Here, a topic title:

Sorry about that! 🙈

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 24, 2026, 1:00pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/6 "2026-02-24T13:00:44Z")

</div>

This topic was automatically closed after 15 hours. New replies are no longer allowed.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 24, 2026, 2:00pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/7 "2026-02-24T14:00:08Z")

</div>



---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [February 24, 2026, 3:17pm UTC](https://meta.discourse.org/t/usercard-cloak-not-disappears-on-touchstart/319061/8 "2026-02-24T15:17:40Z")

</div>

Good point, no worries, this should fix that (and it also adds fade-in/fade-out for the background cloak):

[https://github.com/discourse/discourse/pull/38025](https://github.com/discourse/discourse/pull/38025)
