You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Memory leak in PanningManager: some listeners are not destroyed #994
changed the title [-][BUG] Memory leak in PanningManager: lsome listener [/-][+][BUG] Memory leak in PanningManager: some listeners are not destroyed[/+]on Jan 15, 2026
Hi
can you please confirm that your graph is using the PanningHandler plugin, and that you see the problem when you call the destroy method of the graph, the listener is not removed?
If possible, please provide a code snippet
My first analysis shows that PanningHandler.onDestroy is not calling the destroy method of PanningManager.
Activity
[-][BUG] Memory leak in PanningManager.js[/-][+][BUG] Memory leak in PanningManager: lsome listener [/+][-][BUG] Memory leak in PanningManager: lsome listener [/-][+][BUG] Memory leak in PanningManager: some listeners are not destroyed[/+]tbouffard commentedon Jan 15, 2026
Hi
can you please confirm that your graph is using the PanningHandler plugin, and that you see the problem when you call the destroy method of the graph, the listener is not removed?
If possible, please provide a code snippet
My first analysis shows that PanningHandler.onDestroy is not calling the destroy method of PanningManager.
Note: This problem already existed in mxGraph 4.2.2: https://github.com/jgraph/mxgraph/blob/v4.2.2/javascript/src/js/handler/mxPanningHandler.js#L488-L494
wenkui0519 commentedon Jan 16, 2026
Hello, my function is like this: When pressing Ctrl or Space, I can drag the canvas with the left mouse button.
Here is my code:
When I destroy the graph, the destroy function in PanningManager.js is not executed.
tbouffard commentedon Jan 16, 2026
Thanks for the code snippet and the explanation.
This is appreciated and will help for the fix.