mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Add red 'X' to mouse cursor if blocks are over the trash can.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user