Disable blockchain drag for middle/right click
This commit is contained in:
		
							parent
							
								
									bdbb1dcf8e
								
							
						
					
					
						commit
						d325734c16
					
				| @ -137,9 +137,11 @@ export class StartComponent implements OnInit, OnDestroy { | ||||
|   } | ||||
| 
 | ||||
|   onMouseDown(event: MouseEvent) { | ||||
|     this.mouseDragStartX = event.clientX; | ||||
|     this.resetMomentum(event.clientX); | ||||
|     this.blockchainScrollLeftInit = this.blockchainContainer.nativeElement.scrollLeft; | ||||
|     if (!(event.which > 1 || event.button > 0)) { | ||||
|       this.mouseDragStartX = event.clientX; | ||||
|       this.resetMomentum(event.clientX); | ||||
|       this.blockchainScrollLeftInit = this.blockchainContainer.nativeElement.scrollLeft; | ||||
|     } | ||||
|   } | ||||
|   onPointerDown(event: PointerEvent) { | ||||
|     if (this.isiOS) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user