We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31c35ea commit 0e9db4cCopy full SHA for 0e9db4c
projects/stream-chat-angular/src/lib/message/message.component.ts
@@ -98,7 +98,7 @@ export class MessageComponent
98
};
99
areMessageOptionsOpen = false;
100
canDisplayReadStatus = false;
101
- hasTouchSupport = 'ontouchstart' in window || navigator.maxTouchPoints > 0;
+ hasTouchSupport = window.matchMedia('(any-hover: none)').matches;
102
private quotedMessageAttachments: Attachment[] | undefined;
103
private subscriptions: Subscription[] = [];
104
private isViewInited = false;
0 commit comments