projectstorm / react-diagrams

a super simple, no-nonsense diagramming library written in react that just works
https://projectstorm.cloud/react-diagrams
MIT License
8.45k stars 1.16k forks source link

"Parent" actions was ignored if one of them was transited #943

Open ToTheHit opened 2 years ago

ToTheHit commented 2 years ago

Steps to reproduce:

  1. Open react-canvas-core/src/states/DefaultState.ts (or diagrams-demo-gallery/demos/demo-alternative-linking/DefaultState.ts, for example)
  2. Add console.log in fire function for MOUSE_DOWN action
  3. Register the action for MOUSE_UP with some console.log
  4. Try it.

Result: MOUSE_UP doesn't call.

Is it bug or feature?)