onPaneDoubleClick
Author: zormitCreated Sep 18, 2026Updated Sep 18, 2026
Labelsfeature request
Please describe the feature that you want to propose
There's onNodeDoubleClick and onPaneDoubleClick, but only a boolean zoomOnDoubleClick and onpaneclick. It would be nice to have an Event for handling double click events to completely replace the zoom functionality, not only replace it.
To be fair, it's possible to work around this, but listening to an ondblclick on a wrapper and matching for the pane target class in the handler like
function onWrapperDblClick(event) {
if (event.target.classList.contains("svelte-flow__pane")) {
...
}
}but that hard-codes the class name and thus feels somewhat hacky.
What do you think?
Source: xyflow/xyflow