Attempt to get drag working on mobile

This commit is contained in:
Robert Long 2021-08-31 14:44:21 -07:00
parent f83ddc3f18
commit c8192ac48c
2 changed files with 10 additions and 1 deletions

View file

@ -600,7 +600,9 @@ export function VideoGrid({ participants }) {
); );
const bind = useDrag( const bind = useDrag(
({ args: [key], active, xy, movement, tap }) => { ({ args: [key], active, xy, movement, tap, event }) => {
event.preventDefault();
if (tap) { if (tap) {
onTap(key); onTap(key);
return; return;

View file

@ -28,6 +28,13 @@ limitations under the License.
background-color: #444; background-color: #444;
} }
.participantTile * {
touch-action: none;
-moz-user-select: none;
-webkit-user-drag: none;
user-select: none;
}
.participantTile video { .participantTile video {
width: 100%; width: 100%;
height: 100%; height: 100%;