Skip to content

[Bug] Normal (quick) double click should finish drawing #226

Open
@mwilniewiec

Description

@mwilniewiec

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

Currently to finish drawing of a polygon or linestring the same (or first) point must be clicked twice.
Also ENTER key is handled as drawing finish action.

When the same point is clicked too fast (regular double click) nothing happens.

Expected Behavior

Double click should finish the drawing which is intuitive and expected.
It was like this in nebula.gl with older deck.gl too.

Steps to Reproduce

Draw a polygon, try to finish drawing with a double click.

Environment

  • Framework version: deckgl.gl@9
  • Browser: Chrome
  • OS: Ubuntu

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