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

Dragging first and last waypoint does not work #2

Open
thijssmudde opened this issue May 10, 2018 · 0 comments
Open

Dragging first and last waypoint does not work #2

thijssmudde opened this issue May 10, 2018 · 0 comments

Comments

@thijssmudde
Copy link

thijssmudde commented May 10, 2018

In my app there are multiple waypoints inserted by the user. Each one has to be draggable. However, when dragging the first or last waypoint, which is also the first and last position in the positions array, the position remains the same.

Example:

positions: [[0,0],[1,1],[2,0]]
waypoints: [[0,0],[2,0]]

First waypoint [0,0] is dragged to [42,42]

Result should be [[42,42],[1,1],[2,0]] with snapped positions inserted in the middle

Or if last waypoint [2,0] is dragged to [42,42]

Result should be [[0,0],[1,1],[42,42]] with snapped positions inserted in the middle

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

No branches or pull requests

1 participant