Don
July 29, 2024, 4:09pm
1
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
2 Likes
Canapin
(Coin-coin le Canapin)
January 9, 2025, 3:35pm
2
I encountered this slightly annoying issue as well.
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.
1 Like
Canapin
(Coin-coin le Canapin)
February 18, 2026, 12:28pm
3
Replacing mousedown with pointerdown in discourse/frontend/discourse/app/components/card-contents-base.js at d056c1e358d1cb823632aa4a8c51a42e911969b3 Β· discourse/discourse Β· GitHub seems to fix the issue.
Those event werenβt compatible with Safari until 2019 , so I guess we could use them? Unless there are caveats Iβm unaware of.
3 Likes
pmusaraj
(Penar Musaraj)
February 23, 2026, 6:54pm
4
Thanks for the PR, it is now merged.
1 Like
Canapin
(Coin-coin le Canapin)
February 24, 2026, 11:48am
5
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!
2 Likes
pmusaraj
(Penar Musaraj)
Closed
February 24, 2026, 1:00pm
6
This topic was automatically closed after 15 hours. New replies are no longer allowed.
pmusaraj
(Penar Musaraj)
February 24, 2026, 3:17pm
8
Good point, no worries, this should fix that (and it also adds fade-in/fade-out for the background cloak):
main β mobile-card-cloak-refactor
merged 08:11PM - 24 Feb 26 UTC
Two fixes in one:
- when clicking outside the card, now the click event won't⦠bubble
- the background cloak element is now faded in and out, similar to what we do for modals and lightboxes
Followup to 61fac8a6a8a088dc27257a90d5c19ede7feb5d1e
1 Like