mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Handle touches on/in comments and right-clicks on the workspace
This commit is contained in:
parent
2774cc1663
commit
706d74c81e
2 changed files with 5 additions and 3 deletions
|
@ -145,11 +145,11 @@ Blockly.Bubble.unbindDragEvents_ = function() {
|
|||
};
|
||||
|
||||
/*
|
||||
* Handle a mouse-up event while dragging a bubble's border.
|
||||
* Handle a mouse-up event while dragging a bubble's border or resize handle.
|
||||
* @param {!Event} e Mouse up event.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Bubble.bubbleMouseUp_ = function(e) {
|
||||
Blockly.Bubble.bubbleMouseUp_ = function(/*e*/) {
|
||||
Blockly.clearTouchIdentifier();
|
||||
Blockly.Css.setCursor(Blockly.Css.Cursor.OPEN);
|
||||
Blockly.Bubble.unbindDragEvents_();
|
||||
|
@ -328,7 +328,7 @@ Blockly.Bubble.prototype.resizeMouseDown_ = function(e) {
|
|||
this.workspace_.RTL ? -this.width_ : this.width_, this.height_));
|
||||
|
||||
Blockly.Bubble.onMouseUpWrapper_ = Blockly.bindEvent_(document,
|
||||
'mouseup', this, Blockly.Bubble.unbindDragEvents_);
|
||||
'mouseup', this, Blockly.Bubble.bubbleMouseUp_);
|
||||
Blockly.Bubble.onMouseMoveWrapper_ = Blockly.bindEvent_(document,
|
||||
'mousemove', this, this.resizeMouseMove_);
|
||||
Blockly.hideChaff();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue