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