Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "disable the selectivity of a text in video gallery for long touch to function properly",
"packageName": "@azure/communication-react",
"email": "97124699+prabhjot-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "disable the selectivity of a text in video gallery for long touch to function properly",
"packageName": "@azure/communication-react",
"email": "97124699+prabhjot-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
14 changes: 13 additions & 1 deletion packages/react-components/src/components/VideoGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ import { useId } from '@fluentui/react-hooks';
* Currently the Calling JS SDK supports up to 4 remote video streams
*/
export const DEFAULT_MAX_REMOTE_VIDEO_STREAMS = 4;

/**
* @private
* Styles to disable the selectivity of a text in video gallery
*/
export const unselectable = {
'-webkit-user-select': 'none',
'-webkit-touch-callout': 'none',
'-moz-user-select': 'none',
'-ms-user-select': 'none',
'user-select': 'none'
};
/**
* @private
* Set aside only 6 dominant speakers for remaining audio participants
Expand Down Expand Up @@ -568,7 +580,7 @@ export const VideoGallery = (props: VideoGalleryProps): JSX.Element => {
id={drawerMenuHostIdFromProp ? undefined : drawerMenuHostId}
data-ui-id={ids.videoGallery}
ref={containerRef}
className={mergeStyles(videoGalleryOuterDivStyle, styles?.root)}
className={mergeStyles(videoGalleryOuterDivStyle, styles?.root, unselectable)}
>
{videoGalleryLayout}
{
Expand Down