@@ -148,15 +148,15 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
148
148
onClick : onControlClick ,
149
149
onPointerup : onControlMouseup ,
150
150
onPointerdown : onUpControlMousedown ,
151
- onPointercancel : onControlPointerCancel ,
151
+ onPointercancel : onControlMouseup ,
152
152
} ,
153
153
}
154
154
const decrementSlotProps = {
155
155
props : {
156
156
onClick : onControlClick ,
157
157
onPointerup : onControlMouseup ,
158
158
onPointerdown : onDownControlMousedown ,
159
- onPointercancel : onControlPointerCancel ,
159
+ onPointercancel : onControlMouseup ,
160
160
} ,
161
161
}
162
162
@@ -250,7 +250,6 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
250
250
const el = e . currentTarget as HTMLElement
251
251
el ?. releasePointerCapture ( e . pointerId )
252
252
e . preventDefault ( )
253
- e . stopPropagation ( )
254
253
holdStop ( )
255
254
}
256
255
@@ -270,12 +269,6 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
270
269
holdStart ( 'down' )
271
270
}
272
271
273
- function onControlPointerCancel ( e : PointerEvent ) {
274
- const el = e . currentTarget as HTMLElement
275
- el ?. releasePointerCapture ( e . pointerId )
276
- holdStop ( )
277
- }
278
-
279
272
function clampModel ( ) {
280
273
if ( controlsDisabled . value ) return
281
274
if ( ! vTextFieldRef . value ) return
@@ -331,7 +324,7 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
331
324
onClick = { onControlClick }
332
325
onPointerdown = { onUpControlMousedown }
333
326
onPointerup = { onControlMouseup }
334
- onPointercancel = { onControlPointerCancel }
327
+ onPointercancel = { onControlMouseup }
335
328
size = { controlNodeSize . value }
336
329
tabindex = "-1"
337
330
/>
@@ -366,7 +359,7 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
366
359
onClick = { onControlClick }
367
360
onPointerdown = { onDownControlMousedown }
368
361
onPointerup = { onControlMouseup }
369
- onPointercancel = { onControlPointerCancel }
362
+ onPointercancel = { onControlMouseup }
370
363
size = { controlNodeSize . value }
371
364
tabindex = "-1"
372
365
/>
0 commit comments