Now using correct delete count to check if should show dialog

This commit is contained in:
Mathias Søholm 2019-08-13 13:56:44 +02:00
parent d2f03647e9
commit eb7dfe6867

View file

@ -1500,7 +1500,7 @@ Blockly.WorkspaceSvg.prototype.showContextMenu_ = function(e) {
if (ws.currentGesture_) {
ws.currentGesture_.cancel();
}
if (deleteList.length < 2 ) {
if (deleteCount < 2 ) {
deleteNext();
} else {
Blockly.confirm(