We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96eaca6 commit 3a1497aCopy full SHA for 3a1497a
extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js
@@ -483,7 +483,7 @@ onUiLoaded(async() => {
483
(deltaY > 0 ? -changeAmount : changeAmount);
484
input.value = Math.min(Math.max(newValue, 0), maxValue);
485
} else {
486
- const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor
+ const brush_factor = deltaY > 0 ? 1 - opts.canvas_hotkey_brush_factor : 1 + opts.canvas_hotkey_brush_factor;
487
const currentRadius = parseFloat(input.value);
488
let delta = Math.sqrt(currentRadius ** 2 * brush_factor) - currentRadius;
489
// gradio seems to have a minimum brush size step of 1
0 commit comments