We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21af830 commit 6fd7404Copy full SHA for 6fd7404
1 file changed
src/cropt.ts
@@ -56,7 +56,7 @@ function setZoomerVal(value: number, zoomer: HTMLInputElement) {
56
const zMin = parseFloat(zoomer.min);
57
const zMax = parseFloat(zoomer.max);
58
59
- zoomer.value = Math.max(zMin, Math.min(zMax, value)).toFixed(4);
+ zoomer.value = Math.max(zMin, Math.min(zMax, value)).toString();
60
}
61
62
function loadImage(src: string): Promise<HTMLImageElement> {
@@ -177,7 +177,7 @@ export class Cropt {
177
this.elements.boundary.appendChild(this.elements.overlay);
178
179
this.elements.zoomer.type = "range";
180
- this.elements.zoomer.step = "0.0001";
+ this.elements.zoomer.step = "any";
181
this.elements.zoomer.value = "1";
182
this.elements.zoomer.setAttribute("aria-label", "zoom");
183
0 commit comments