Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Previously we were registering a click handler with every single div in the visualiser. This is somewhat wasteful as well as was causing issues since i needed to call stop propagation to prevent the click bubbling and selecting all the parents too. as a result of stop propagation the context menu behaviour was weird, when left clicking elsewhere to close the context menu it wouldnt work as the click was swallowed by the click handlers for the nodes. Now we have a much simpler system. The hovered overlay is the click handler. Thats it. Another benefit of this is the visualisation nodes under the overlays are all interaction less so they can be moved to canvas one day if need be Reviewed By: lblasa Differential Revision: D47550673 fbshipit-source-id: 1a607059c68f0b936f0184bd98a6a1492703d41b
- Loading branch information