Add red 'X' to mouse cursor if blocks are over the trash can.

This commit is contained in:
Neil Fraser
2014-11-26 12:03:21 -08:00
parent 1467f746f6
commit 208e49c9e6
8 changed files with 186 additions and 141 deletions

View File

@@ -253,7 +253,7 @@ Blockly.Bubble.prototype.bubbleMouseDown_ = function(e) {
return;
}
// Left-click (or middle click)
Blockly.setCursorHand_(true);
Blockly.Css.setCursor(Blockly.Css.Cursor.CLOSED);
// Record the starting offset between the current location and the mouse.
if (Blockly.RTL) {
this.dragDeltaX = this.relativeLeft_ + e.clientX;
@@ -301,7 +301,7 @@ Blockly.Bubble.prototype.resizeMouseDown_ = function(e) {
return;
}
// Left-click (or middle click)
Blockly.setCursorHand_(true);
Blockly.Css.setCursor(Blockly.Css.Cursor.CLOSED);
// Record the starting offset between the current location and the mouse.
if (Blockly.RTL) {
this.resizeDeltaWidth = this.width_ + e.clientX;