Skip to content

Commit c2528eb

Browse files
committed
feat(NumberInput): a held stepper repeats into the draft, commits once
Holding a stepper with a mouse or pen repeats the step, the first repeat after 0.5 s and then on a ramp from 250 ms down to 50 ms. Each repeat writes the field's draft, and the hold commits once through onChange, on release or pointer cancel. The click that follows a release steps nothing, so a hold makes one commit. A press released before 0.5 s is a click: it steps and commits at once. A finger keeps its click's single step. FR5 of the NumberInput record states the hold, with a verification row.
1 parent 252b45b commit c2528eb

5 files changed

Lines changed: 758 additions & 27 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@astryxdesign/core': patch
3+
---
4+
5+
[feature] Holding a NumberInput stepper with a mouse or a pen repeats the step: the first repeat comes after 0.5 s, and later ones come faster. The field shows each repeated value as its draft and calls `onChange` once, when the hold ends by release or pointer cancel. A click still steps and commits at once.
6+
7+
@vjeux

0 commit comments

Comments
 (0)