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-nk7ev2hp?file=src%2Fmain.js

Environment

  • Framework version: [email protected], deck.gl-community/editable-layers: 9.1.0-beta.5
  • Browser: Firefox 139.0.1
  • OS: Linux

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions