TS fix
This commit is contained in:
@@ -367,7 +367,7 @@
|
|||||||
const zoomValues = [0.5, 1, 2, 3, 4];
|
const zoomValues = [0.5, 1, 2, 3, 4];
|
||||||
const currentIndex = zoomValues.indexOf(Number(zoom.value));
|
const currentIndex = zoomValues.indexOf(Number(zoom.value));
|
||||||
if (currentIndex < zoomValues.length - 1) {
|
if (currentIndex < zoomValues.length - 1) {
|
||||||
zoom.value = zoomValues[currentIndex + 1].toString();
|
zoom.value = zoomValues[currentIndex + 1];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -375,7 +375,7 @@
|
|||||||
const zoomValues = [0.5, 1, 2, 3, 4];
|
const zoomValues = [0.5, 1, 2, 3, 4];
|
||||||
const currentIndex = zoomValues.indexOf(Number(zoom.value));
|
const currentIndex = zoomValues.indexOf(Number(zoom.value));
|
||||||
if (currentIndex > 0) {
|
if (currentIndex > 0) {
|
||||||
zoom.value = zoomValues[currentIndex - 1].toString();
|
zoom.value = zoomValues[currentIndex - 1];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user