Attempt to get drag working on mobile
This commit is contained in:
		
					parent
					
						
							
								f83ddc3f18
							
						
					
				
			
			
				commit
				
					
						c8192ac48c
					
				
			
		
					 2 changed files with 10 additions and 1 deletions
				
			
		|  | @ -600,7 +600,9 @@ export function VideoGrid({ participants }) { | |||
|   ); | ||||
| 
 | ||||
|   const bind = useDrag( | ||||
|     ({ args: [key], active, xy, movement, tap }) => { | ||||
|     ({ args: [key], active, xy, movement, tap, event }) => { | ||||
|       event.preventDefault(); | ||||
| 
 | ||||
|       if (tap) { | ||||
|         onTap(key); | ||||
|         return; | ||||
|  |  | |||
|  | @ -28,6 +28,13 @@ limitations under the License. | |||
|   background-color: #444; | ||||
| } | ||||
| 
 | ||||
| .participantTile * { | ||||
|   touch-action: none; | ||||
|   -moz-user-select: none; | ||||
|   -webkit-user-drag: none; | ||||
|   user-select: none; | ||||
| } | ||||
| 
 | ||||
| .participantTile video { | ||||
|   width: 100%; | ||||
|   height: 100%; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue