zeldamods / objmap-totk

Tears of the Kingdom Object Map
https://objmap-totk.zeldamods.org
GNU General Public License v3.0
47 stars 7 forks source link

Option to tell leaflet.draw to avoid touch screen behavior #56

Closed savage13 closed 1 year ago

savage13 commented 1 year ago

Option added on Settings pane and in settings noTouchScreen

There has been numerous discussions regarding Leaflet.Draw and its use of click events and attempting to use the presence of touch event to determine if a touch screen in present.

See: TouchExtend brakes map dragging (Leaflet.Draw) https://github.com/Leaflet/Leaflet.draw/issues/935#issue-446986829 L.Browser.touch should be retired (Leaflet) https://github.com/Leaflet/Leaflet/issues/6978#issue-554006348

savage13 commented 1 year ago

Using L_NO_TOUCH as described at https://leafletjs.com/reference.html#global-switches makes it nearly impossible to click on the last point to finish drawing a polyline.