We are having an issue with editing the text on text annotations with the new iOS 13 update. When you double click a text annotation, nothing happens. Sometimes if you continuously click it over and over it will finally go into edit mode.
This can be reproduced by:
The same functionality worked fine on iOS 11 and iOS 12, and it doesn't seem to matter if requesting desktop site or mobile site. Has anyone found a workaround?
There are no javascript errors on the iPad (using a macbook to connect to check the console).
I tried another page using a standard javascript ondblclick event and it works fine. Can you give me any more details on how the annotation is detecting a double click, or anywhere in the code I could look to help troubleshoot?
d99vinta wrote: Fri Oct 11, 2019 4:05 pm
I tried another page using a standard javascript ondblclick event and it works fine. Can you give me any more details on how the annotation is detecting a double click, or anywhere in the code I could look to help troubleshoot?
SDK does not use "ondblclick" event because this event works differently in different internet browsers. Also "ondblclick" event is not generated in sensor screens.
SDK uses "mousedown" and "mouseup" events and calculates if double click occurs. Please subscribe to the "ondblclick", "mousedown" and "mouseup" events, check the event sequence when you double click and let me know result.
d99vinta wrote: Fri Oct 11, 2019 5:27 pm
Using this to test: http://jsfiddle.net/osfwzm3v/2/
On the iPad with iOS 13 I get:
mousedown
mouseup
dblclick
mousedown
mouseup
On an iPad with iOS 11 I get:
mousedown
mouseup
mousedown
mouseup
Thank you for information. Unfortunately, provided information does not allow to understand the problem.
What internet browser do you use? Maybe problem is related with browser, not with iOS?
In Monday we will try to reproduce the problem on iPad with iOS 13. We will contact you and will try to trace problem on your side if we cannot reproduce the problem on our side.
All iPad testing is using the default Safari browser. It looks like with iOS 13 Safari has started responding to the ondblclick event, and it is in the middle of the 2 mousedown/mouseup events that used to trigger the annotation text edit box.
We tested iPad with iOS 13.1.2 and have found that Safari 13 raises only 1 "mouseup" event if we do fast 2 clicks. After this we have found this discussion on GitHub: https://github.com/Leaflet/Leaflet/issues/6817
Please read the discussion and you will find that Apple developers classified the problem as bug and promised to fix the bug in iOS 13.2. Now we are waiting for iOS 13.2.