1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

showing controls (mainly faces) during pan. fixes #254

This commit is contained in:
Patrik J. Braun 2021-04-06 17:05:48 +02:00
parent 7d04d033d4
commit cc626d8198

View File

@ -80,6 +80,7 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
this.prevDrag.x = this.drag.x;
this.prevDrag.y = this.drag.y;
this.zoom = zoom;
this.showControls();
this.checkZoomAndDrag();
}
@ -124,6 +125,7 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
}
this.drag.x = this.prevDrag.x + $event.deltaX;
this.drag.y = this.prevDrag.y + $event.deltaY;
this.showControls();
this.checkZoomAndDrag();
if ($event.isFinal) {
this.prevDrag = {