fix(appComponent): fixed live reloading of config
This commit is contained in:
@@ -22,6 +22,8 @@ export class AppComponent implements OnInit {
|
|||||||
const delta = Math.sign(event.deltaY);
|
const delta = Math.sign(event.deltaY);
|
||||||
const step = 0.01;
|
const step = 0.01;
|
||||||
|
|
||||||
|
this.config = {...this.configForm.value};
|
||||||
|
|
||||||
if (delta > 0) {
|
if (delta > 0) {
|
||||||
if (this.config.scale === 1 - step) {
|
if (this.config.scale === 1 - step) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user