uber / react-digraph

A library for creating directed graph editors
MIT License
2.63k stars 268 forks source link

cannot call isControlKeyPressed on undefined #309

Closed ajbogh closed 3 years ago

ajbogh commented 3 years ago

Describe the bug The graph doesn't move when the background is clicked.

To Reproduce Steps to reproduce the behavior:

  1. Click to move the background

Expected behavior The graph should move with the mouse

Actual behavior An error shows in the console saying cannot call isControlKeyPressed on undefined (this.isControlKeyPressed).

Desktop (please complete the following information):