Mobile Safari click event 'detail' property is always 1

Viewed 79

UIEvent.detail property should contain the current click count. MDN web docs tells that the property is fully supported on all modern browsers, and it works correctly on all browsers I tested, except mobile Safari. I tried my Angular app and MDN sample on IOS 12.3.1, and the detail property is always 1, no matter how many clicks were done. Is it mobile Safari problem? Any workaround (without counting the clicks manually)?

0 Answers
Related