Skip to content

Dragging first and last waypoint does not work #2

@thijssmudde

Description

@thijssmudde

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions