Remove magic 10% scale on numeric widget step (#2759)

This commit is contained in:
Chenlei Hu
2025-02-27 16:56:22 -05:00
committed by GitHub
parent b685eba689
commit cb4a5b88fc
2 changed files with 10 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ export const useIntWidget = () => {
inputName,
val,
function (this: INumericWidget, v: number) {
const s = (this.options.step ?? 1) / 10
const s = this.options.step2 || 1
let sh = (this.options.min ?? 0) % s
if (isNaN(sh)) {
sh = 0