Use click event to avoid gesture problems freezing workspace

This commit is contained in:
Paul Kaplan 2019-08-07 14:35:28 -04:00
parent ef1de26862
commit 74704ec269
2 changed files with 3 additions and 3 deletions

View file

@ -341,7 +341,7 @@ Blockly.FieldColourSlider.prototype.showEditor_ = function() {
button.appendChild(image);
div.appendChild(button);
Blockly.FieldColourSlider.eyedropperEventData_ =
Blockly.bindEventWithChecks_(button, 'mousedown', this,
Blockly.bindEventWithChecks_(button, 'click', this,
this.activateEyedropperInternal_);
}

View file

@ -348,9 +348,9 @@ Blockly.FieldMatrix.prototype.showEditor_ = function() {
this.matrixTouchWrapper_ =
Blockly.bindEvent_(this.matrixStage_, 'mousedown', this, this.onMouseDown);
this.clearButtonWrapper_ =
Blockly.bindEvent_(clearButton, 'mousedown', this, this.clearMatrix_);
Blockly.bindEvent_(clearButton, 'click', this, this.clearMatrix_);
this.fillButtonWrapper_ =
Blockly.bindEvent_(fillButton, 'mousedown', this, this.fillMatrix_);
Blockly.bindEvent_(fillButton, 'click', this, this.fillMatrix_);
// Update the matrix for the current value
this.updateMatrix_();