mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-06-16 23:30:20 -04:00
Use click event to avoid gesture problems freezing workspace
This commit is contained in:
parent
ef1de26862
commit
74704ec269
2 changed files with 3 additions and 3 deletions
|
@ -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_);
|
||||
}
|
||||
|
||||
|
|
|
@ -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_();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue