Skip to content

Commit 0e9db4c

Browse files
committed
fix: use desktop trigger on mixed input devices #680
1 parent 31c35ea commit 0e9db4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/stream-chat-angular/src/lib/message/message.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class MessageComponent
9898
};
9999
areMessageOptionsOpen = false;
100100
canDisplayReadStatus = false;
101-
hasTouchSupport = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
101+
hasTouchSupport = window.matchMedia('(any-hover: none)').matches;
102102
private quotedMessageAttachments: Attachment[] | undefined;
103103
private subscriptions: Subscription[] = [];
104104
private isViewInited = false;

0 commit comments

Comments
 (0)