We are using BackgroundDoubleClicked diagram event. But when using Freehand (Freehand Drawing Tool) its not working.
To a copy of the Freehand Drawing sample I added a “BackgroundDoubleClicked” DiagramEvent listener, as follows:
$(go.Diagram, "myDiagramDiv",
{
"BackgroundDoubleClicked": function(e) {
alert(e.diagram.lastInput.documentPoint)
}
}
);
And it worked as expected – whenever I double-clicked in the background (i.e. not on any shape) I got the alert showing where I had clicked in document coordinates.
Please take a look : https://codepen.io/anupam-the-reactor/pen/JmgZVz
It doesnt work in drowing tool is enabled but works on selection mode.
When I run your CodePen, I find that I get the alert on background double-click both in Select mode and in Draw mode.