Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Rectangle and Circle drawing broken since Leaflet 1.0.0 #108

Merged
merged 1 commit into from
Nov 3, 2016

Conversation

yohanboniface
Copy link
Member

Warning: this is a hack.

L.Draggable has two workflows:

  • mousedown => mousemove => mouseup
  • touchstart => touchmove => touchend

Problem: L.Map.Tap does not allow us to listen to touchstart on L.Map, so we only can deal with the mousedown way, but then when in a touch device, we are dealing with simulated events (actually simulated by L.Map.Tap), which are no more taken into account by L.Draggable since Leaflet/Leaflet@f05af08 / Leaflet/Leaflet#4387.

As a reminder, the overall goal here is to cancel map dragging to allow drawing to start

Also, this is the last bit blocking Leaflet.Editable 1.0.0 release.

Fix #103

@mourner @perliedman @IvanSanchez any better idea by chance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant