Skip to content

Commit abc0350

Browse files
authored
fix math maybe
1 parent 56aa464 commit abc0350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/addons/addons/paint-tool-panel/userscript.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export default async function () {
379379
case "Scaling/width":
380380
case "Scaling/height": return (item, value) => {
381381
if (!item[panelTag]) item[panelTag] = structuredClone(valueObserverObj);
382-
const currentScale = item.getBounds()[isX ? "width" : "height"] / 2;
382+
const currentScale = item.getBounds()[isX ? "width" : "height"];
383383

384384
// determine the delta needed to move the currentScale to value
385385
value = value / currentScale;

0 commit comments

Comments
 (0)