Skip to content

Commit 3a1497a

Browse files
committed
eslint
1 parent 96eaca6 commit 3a1497a

File tree

1 file changed

+1
-1
lines changed
  • extensions-builtin/canvas-zoom-and-pan/javascript

1 file changed

+1
-1
lines changed

extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ onUiLoaded(async() => {
483483
(deltaY > 0 ? -changeAmount : changeAmount);
484484
input.value = Math.min(Math.max(newValue, 0), maxValue);
485485
} else {
486-
const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor
486+
const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor;
487487
const currentRadius = parseFloat(input.value);
488488
let delta = Math.sqrt(currentRadius ** 2 * brush_factor) - currentRadius;
489489
// gradio seems to have a minimum brush size step of 1

0 commit comments

Comments
 (0)