Disable blockchain drag for middle/right click

This commit is contained in:
Mononaut 2023-04-04 08:25:40 +09:00
parent bdbb1dcf8e
commit d325734c16
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -137,10 +137,12 @@ export class StartComponent implements OnInit, OnDestroy {
}
onMouseDown(event: MouseEvent) {
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) {
event.preventDefault();