Removed the document.activeElement&&document.activeElement.blur(); at Blockly.WorkspaceSvg.prototype.setBrowserFocus=function() in blockly_compressed.js as tested again, the problem cannot be fixed.
Just open the page, drag on the empty area, the application will go to bottom.
Click on the blank area to bring it to top, and drag without anything in the blank area, a javaScript error will be prompted.
Right click on some area can also trigger the javaScritp error.
But if I click on the toolbox item right after application started, it will not bring the window to bottom, and I can do everything without error.