Skip to content

[Bug] DrawPolygonByDraggingMode should not allow drawing with middle or right mouse buttons #247

@AnJ-K

Description

@AnJ-K

Module

  • deck.gl-community/arrow-layers
  • deck.gl-community/bing-maps
  • deck.gl-community/editable-layers
  • deck.gl-community/experimental
  • deck.gl-community/graph-layers
  • deck.gl-community/layers
  • deck.gl-community/react
  • deck.gl-community/react-graph-layer

Description

When using DrawPolygonByDraggingMode it is possible to draw the shape using middle mouse button and right mouse button.

Expected Behavior

It should not be possible to draw with middle or right mouse button. It is not expected, it makes it impossible to pan the map with middle mouse button while in this mode, and right click will likely open the context menu that will cover the canvas while drawing.

Steps to Reproduce

Create a editable layer with DrawPolygonByDraggingMode and try drawing with middle or right mouse button.

Small reproduction example:
https://stackblitz.com/edit/vitejs-vite-jh6kgn8t

Environment

  • Framework version: deck.gl@9.2.8, deck.gl-community/editable-layers: 9.2.5
  • Browser: Firefox 139.0.1, Chrome
  • OS: Linux, Windows

Logs

No response

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions