Make drag and drop mobile-friendly
This commit is contained in:
		
					parent
					
						
							
								6cd939db0c
							
						
					
				
			
			
				commit
				
					
						22382413dc
					
				
			
		
					 2 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -23,7 +23,6 @@ limitations under the License.
 | 
			
		|||
  border-radius: 20px;
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
  cursor: pointer;
 | 
			
		||||
  touch-action: none;
 | 
			
		||||
 | 
			
		||||
  /* HACK: This has no visual effect due to the short duration, but allows the
 | 
			
		||||
  JS to detect movement via the transform property for audio spatialization */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -103,7 +103,7 @@ export const VideoTileContainer: FC<Props> = memo(
 | 
			
		|||
    useDrag((state) => onDragRef.current!(item.id, state), {
 | 
			
		||||
      target: tileRef,
 | 
			
		||||
      filterTaps: true,
 | 
			
		||||
      pointer: { buttons: [1] },
 | 
			
		||||
      preventScroll: true,
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    const {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue