react-force-graph icon indicating copy to clipboard operation
react-force-graph copied to clipboard

onNodeClick event does not fire when presenting graph in a window in a Teams meeting

Open TheoDeAna opened this issue 4 years ago • 2 comments

Describe the bug When presenting a window (ex. browser), the onNodeClick event (pointer event) does not fire when clicking a node, which makes the graph unusable.

When presenting a screen, the event fires.

Maybe we could have another type of event instead of pointer event ? Or a customizable event ? Because I believe the problem comes from the fact that when presenting a window, pointer events are intercepted by the presentation instead of the graph.

Also, nodes are still draggable while presenting, which reinforces my supposition.

To Reproduce Steps to reproduce the behavior:

  1. Present the browser window containing a graph on Microsoft Teams
  2. Try clicking on a node of a graph
  3. Nothing happens

Expected behavior When presenting both window or screen, onNodeClick event should fire, something should happen after a click on a node.

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise (version 20H2)
  • Browser: Microsoft Edge (version 1.5.00.14473, 64 bits)
  • Presenting tool : Microsoft Teams (version 1.5.00.11163, 64 bits)

TheoDeAna avatar Jun 30 '22 08:06 TheoDeAna

@TheoDeAna I'm not familiar enough with the rendering platform you mentioned (Microsoft Teams) to provide proper advice on this. But the click/drag functionality relies on rather standard browser pointer apis. So I would say that if your platform doesn't provide that, you'll probably find that many other web components will also not work there because this inherent functionality is missing.

vasturiano avatar Jul 08 '22 13:07 vasturiano

Disabling node dragging makes this work. I think it thinks is dragging all the time and ignores the click

mjrcmrma avatar Apr 05 '24 22:04 mjrcmrma