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:
parent
7d04d033d4
commit
cc626d8198
@ -80,6 +80,7 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
|
|||||||
this.prevDrag.x = this.drag.x;
|
this.prevDrag.x = this.drag.x;
|
||||||
this.prevDrag.y = this.drag.y;
|
this.prevDrag.y = this.drag.y;
|
||||||
this.zoom = zoom;
|
this.zoom = zoom;
|
||||||
|
this.showControls();
|
||||||
this.checkZoomAndDrag();
|
this.checkZoomAndDrag();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -124,6 +125,7 @@ export class ControlsLightboxComponent implements OnDestroy, OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
this.drag.x = this.prevDrag.x + $event.deltaX;
|
this.drag.x = this.prevDrag.x + $event.deltaX;
|
||||||
this.drag.y = this.prevDrag.y + $event.deltaY;
|
this.drag.y = this.prevDrag.y + $event.deltaY;
|
||||||
|
this.showControls();
|
||||||
this.checkZoomAndDrag();
|
this.checkZoomAndDrag();
|
||||||
if ($event.isFinal) {
|
if ($event.isFinal) {
|
||||||
this.prevDrag = {
|
this.prevDrag = {
|
||||||
|
Loading…
Reference in New Issue
Block a user