mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Reverts changes to fix bug with selecting dropdown
This commit is contained in:
@@ -420,10 +420,6 @@ Blockly.init_ = function(mainWorkspace) {
|
||||
*/
|
||||
Blockly.inject.bindDocumentEvents_ = function() {
|
||||
if (!Blockly.documentEventsBound_) {
|
||||
Blockly.bindEventWithChecks_(document, 'mousedown', null, function() {
|
||||
Blockly.hideChaff();
|
||||
Blockly.Touch.clearTouchIdentifier(); // Don't block future drags.
|
||||
});
|
||||
Blockly.bindEventWithChecks_(document, 'scroll', null, function() {
|
||||
for (var workspaceId in Blockly.Workspace.WorkspaceDB_) {
|
||||
var workspace = Blockly.Workspace.WorkspaceDB_[workspaceId];
|
||||
|
||||
@@ -171,7 +171,6 @@ Blockly.Toolbox.prototype.init = function() {
|
||||
Blockly.hideChaff(true);
|
||||
}
|
||||
Blockly.Touch.clearTouchIdentifier(); // Don't block future drags.
|
||||
e.stopPropagation(); // Don't let the document handle this event.
|
||||
}, /*opt_noCaptureIdentifier*/ false, /*opt_noPreventDefault*/ true);
|
||||
var workspaceOptions = {
|
||||
disabledPatternId: workspace.options.disabledPatternId,
|
||||
|
||||
Reference in New Issue
Block a user