mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-06-28 13:10:21 -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);
|
button.appendChild(image);
|
||||||
div.appendChild(button);
|
div.appendChild(button);
|
||||||
Blockly.FieldColourSlider.eyedropperEventData_ =
|
Blockly.FieldColourSlider.eyedropperEventData_ =
|
||||||
Blockly.bindEventWithChecks_(button, 'mousedown', this,
|
Blockly.bindEventWithChecks_(button, 'click', this,
|
||||||
this.activateEyedropperInternal_);
|
this.activateEyedropperInternal_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -348,9 +348,9 @@ Blockly.FieldMatrix.prototype.showEditor_ = function() {
|
||||||
this.matrixTouchWrapper_ =
|
this.matrixTouchWrapper_ =
|
||||||
Blockly.bindEvent_(this.matrixStage_, 'mousedown', this, this.onMouseDown);
|
Blockly.bindEvent_(this.matrixStage_, 'mousedown', this, this.onMouseDown);
|
||||||
this.clearButtonWrapper_ =
|
this.clearButtonWrapper_ =
|
||||||
Blockly.bindEvent_(clearButton, 'mousedown', this, this.clearMatrix_);
|
Blockly.bindEvent_(clearButton, 'click', this, this.clearMatrix_);
|
||||||
this.fillButtonWrapper_ =
|
this.fillButtonWrapper_ =
|
||||||
Blockly.bindEvent_(fillButton, 'mousedown', this, this.fillMatrix_);
|
Blockly.bindEvent_(fillButton, 'click', this, this.fillMatrix_);
|
||||||
|
|
||||||
// Update the matrix for the current value
|
// Update the matrix for the current value
|
||||||
this.updateMatrix_();
|
this.updateMatrix_();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue