diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js
index bb9292bca3..5fc7635c92 100644
--- a/components/lib/inputnumber/InputNumber.js
+++ b/components/lib/inputnumber/InputNumber.js
@@ -189,6 +189,13 @@ export const InputNumber = React.memo(React.forwardRef((props, ref) => {
}
}
+ const onUpButtonTouchStart = (event) => {
+ if (!props.disabled && !props.readOnly) {
+ repeat(event, null, 1);
+ event.preventDefault();
+ }
+ }
+
const onUpButtonMouseDown = (event) => {
if (!props.disabled && !props.readOnly) {
inputRef.current.focus();
@@ -197,6 +204,13 @@ export const InputNumber = React.memo(React.forwardRef((props, ref) => {
}
}
+ const onUpButtonTouchEnd = () => {
+ if (!props.disabled && !props.readOnly) {
+ clearTimer();
+ event.preventDefault();
+ }
+ }
+
const onUpButtonMouseUp = () => {
if (!props.disabled && !props.readOnly) {
clearTimer();
@@ -221,6 +235,20 @@ export const InputNumber = React.memo(React.forwardRef((props, ref) => {
}
}
+ const onDownButtonTouchStart = (event) => {
+ if (!props.disabled && !props.readOnly) {
+ repeat(event, null, -1);
+ event.preventDefault();
+ }
+ }
+
+ const onDownButtonTouchEnd = () => {
+ if (!props.disabled && !props.readOnly) {
+ clearTimer();
+ event.preventDefault();
+ }
+ }
+
const onDownButtonMouseDown = (event) => {
if (!props.disabled && !props.readOnly) {
inputRef.current.focus();
@@ -953,7 +981,8 @@ export const InputNumber = React.memo(React.forwardRef((props, ref) => {
return (
@@ -968,7 +997,8 @@ export const InputNumber = React.memo(React.forwardRef((props, ref) => {
return (