sap.m.Switch should only respond to drag event initiated from within the control area
OpenUI5 version: 1.60.2
Browser/version (+device/version): Chrome Version 73.0.3642.0 (Official Build) dev (64-bit) Ubuntu 18.04.1 (Desktop)
Any other tested browsers/devices(OK/FAIL): Firefox 64.0 (FAIL)
URL (minimal example if possible): http://jsfiddle.net/zypA1310/wzjs3g41/
Steps to reproduce the problem:
- Create a simple project, default namespace
sap.m - Add a
SimpleFormwith aLabel, aSwitchand anInput - Run it in any browser
- Click the
Switchuntil it's ON (do this at least once) - Click the
Inputto give it focus - Hold the left mouse button down from within the
Input, drag it all the way across theSwitch, and then release the left mouse button.
What is the expected result?
- Text within the
Inputwill be selected according to the mouse position when the left mouse button is released. - The state of the
Switchwill not be altered, its appearance should not change for the entire duration of step 6.
What happens instead?
- Text within the
Inputwill be selected according to the mouse position when the left mouse button is released. - When the mouse is dragged across the
Switch, its appearance is gradually changing, and its state will be changed if the mouse is released at the other side.
Any other information? (attach screenshot if possible)

Hello @zypA13510 , Thank you for sharing this finding. I've created an internal incident 1970016344. The status of the issue will be updated here in GitHub. Regards, Filip
Hi @zypA13510,
it took a while and we finally managed to make a fix for the reported issue from you.
The issue is now fixed by the change https://github.com/SAP/openui5/commit/e56c725eba5f816af0ab62f753b142e6f4e69207. And will be released with openui5 version 1.77. You can already retest with the openui5 nightly build. https://openui5nightly.hana.ondemand.com/.
Best regards, Jiawei
I can confirm that the nightly build fixed this. Thanks. 👍