Fix bug with updating cursor style in draggers (#4889)

This commit is contained in:
Monica Kozbial
2021-06-10 10:57:09 -07:00
committed by GitHub
parent d2579a7369
commit 77dddca02e
2 changed files with 6 additions and 6 deletions

View File

@@ -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;
};
/**