Fix delayed emit replay scheduling and PgUp/PgDn list jump

This commit is contained in:
Jage9
2026-02-28 02:43:18 -05:00
parent 932ab68be5
commit d9b134b3db
3 changed files with 3 additions and 5 deletions

View File

@@ -355,7 +355,8 @@ export function createItemPropertyEditor(deps: EditorDeps): {
if (code === 'PageUp' || code === 'PageDown') {
const length = deps.state.itemPropertyOptionValues.length;
const delta = code === 'PageUp' ? -10 : 10;
const jump = Math.min(10, Math.max(1, length - 1));
const delta = code === 'PageUp' ? -jump : jump;
const nextIndex = (deps.state.itemPropertyOptionIndex + delta + length * 1000) % length;
deps.state.itemPropertyOptionIndex = nextIndex;
deps.updateStatus(deps.state.itemPropertyOptionValues[nextIndex]);