mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Don’t drop newValue from bubble open events.
This commit is contained in:
@@ -249,12 +249,11 @@ Blockly.Events.filter = function(queueIn, forward) {
|
||||
(lastEvent.element == 'commentOpen' ||
|
||||
lastEvent.element == 'mutatorOpen' ||
|
||||
lastEvent.element == 'warningOpen')) {
|
||||
// Merge click events.
|
||||
lastEvent.newValue = event.newValue;
|
||||
// Drop click events caused by opening/closing bubbles.
|
||||
} else {
|
||||
// Collision: newer events should merge into this event to maintain
|
||||
// order.
|
||||
hash[key] = { event: event, index: 1};
|
||||
hash[key] = {event: event, index: 1};
|
||||
mergedQueue.push(event);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ goog.require('Blockly.Events.Abstract');
|
||||
* categories).
|
||||
* UI events do not undo or redo.
|
||||
* @param {Blockly.Block} block The affected block.
|
||||
* @param {string} element One of 'selected', 'comment', 'mutator', etc.
|
||||
* @param {string} element One of 'selected', 'comment', 'mutatorOpen', etc.
|
||||
* @param {*} oldValue Previous value of element.
|
||||
* @param {*} newValue New value of element.
|
||||
* @extends {Blockly.Events.Abstract}
|
||||
|
||||
Reference in New Issue
Block a user