Skip to content

Draw interferes dragPan.disable() #654

@rvratner

Description

@rvratner

mapbox-gl-js version: 0.37
mapbox-gl-draw version: v0.17.4

Steps to Trigger Behavior

  1. Load map.
  2. Load Draw control
  3. map.drapPan.disable()

Expected Behavior

User can't drag pan the map

Actual Behavior

Map is able to be dragpanned

If you comment out the
var draw = new MapboxDraw({
displayControlsDefault: false,
controls: {
polygon: true,
trash: true
}
});
You are able to disable dragPan as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    buguiButtons & user interactions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions