Listen to Drag and Zoom event


We are working on that feature on Angular. We have some node and we have 1 component as a popup. We are mapping it position by get the coordinate of the node.

The issue come with Drag and Zoom, when drag the builder or zoom it. We want to ask about how to handle that 2 event: Drag and Zoom


I’m not sure what actions/events you are trying to handle. That popup is implemented in HTML, isn’t it? (The problem would not happen if it had been implemented in GoJS.) My guess is that you want to implement a “ViewportBoundsChanged” DiagramEvent listener that changes the position of that HTML element.


The Popup is Angular component -> yes, it’s actually HTML. Let me try to listen “ViewportBoundsChanged” in DiagramEvent and I’ll feedback ASAP. Thank @walter