Fix angle picker with new touch code

This commit is contained in:
Rachel Fenichel
2016-10-05 17:03:33 -07:00
parent ca2cd7227a
commit 6ee735ee6e

View File

@@ -168,11 +168,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
}
svg.style.marginLeft = (15 - Blockly.FieldAngle.RADIUS) + 'px';
this.clickWrapper_ =
Blockly.bindEventWithChecks_(svg, 'click', this, Blockly.WidgetDiv.hide);
Blockly.bindEvent_(svg, 'click', this, Blockly.WidgetDiv.hide);
this.moveWrapper1_ =
Blockly.bindEventWithChecks_(circle, 'mousemove', this, this.onMouseMove);
Blockly.bindEvent_(circle, 'mousemove', this, this.onMouseMove);
this.moveWrapper2_ =
Blockly.bindEventWithChecks_(this.gauge_, 'mousemove', this,
Blockly.bindEvent_(this.gauge_, 'mousemove', this,
this.onMouseMove);
this.updateGraph_();
};