pl-fe: add feedback to long press

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-09-12 18:03:25 +02:00
parent fe29e692ca
commit 1f001abe9e

View File

@ -41,6 +41,8 @@ const StatusReaction: React.FC<IStatusReaction> = ({ reaction, status, obfuscate
if (e.type !== 'touchstart') return;
e.stopPropagation();
if ('vibrate' in navigator) navigator.vibrate(100);
dispatch(openModal('REACTIONS', { statusId: status.id, reaction: reaction.name }));
});