mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Fix bug with updating cursor style in draggers (#4889)
This commit is contained in:
@@ -142,12 +142,12 @@ Blockly.BubbleDragger.prototype.dragBubble = function(e, currentDragDeltaXY) {
|
||||
this.dragTarget_ && this.dragTarget_.onDragEnter();
|
||||
}
|
||||
|
||||
var wouldDeleteBubble = this.shouldDelete_(this.dragTarget_);
|
||||
if (wouldDeleteBubble != this.wouldDeleteBubble_) {
|
||||
var oldWouldDeleteBubble = this.wouldDeleteBubble_;
|
||||
this.wouldDeleteBubble_ = this.shouldDelete_(this.dragTarget_);
|
||||
if (oldWouldDeleteBubble != this.wouldDeleteBubble_) {
|
||||
// Prevent unnecessary add/remove class calls.
|
||||
this.updateCursorDuringBubbleDrag_();
|
||||
}
|
||||
this.wouldDeleteBubble_ = wouldDeleteBubble;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user