openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.StepInput long press +/- button alters value twice

Open zypA13510 opened this issue 7 years ago • 1 comments

OpenUI5 version: 1.60.2 Browser/version (+device/version): Chrome 73.0.3642.0 dev (64-bit) Ubuntu 18.04.1 (Desktop) Any other tested browsers/devices(OK/FAIL): Firefox 64.0 (FAIL) URL (minimal example if possible): https://openui5.hana.ondemand.com/1.60.1/#/sample/sap.m.sample.StepInput/preview

Steps to reproduce the problem:

  1. Hold down the left mouse button on "+" button of the 3rd StepInput in the example

What is the expected result? On mouse down, the value should be increased by step, stops for a moment, and increase by step rapidly until the mouse button is released or until the mouse leaves the button area (just like the 1st and 2nd StepInput in the same page) Or alternatively, on mouse down, the value is not changed. On mouse up, if the mouse is still within the button area, the value is increased by step.

What happens instead? After mouse down, the value is increased by step if mouse is not released after a certain period, and increased by step again when the mouse is up.

Any other information? (attach screenshot if possible) It seems that this only affects StepInputs whose min and max is not set.

zypA13510 avatar Jan 09 '19 06:01 zypA13510

Hello @zypA13510 , Thank you for sharing this finding. I've created an internal incident 1970021720. The status of the issue will be updated here in GitHub. Regards, Filip

fifoosid avatar Jan 09 '19 10:01 fifoosid