From e01e320205e08e54eeacc3c4987d8a2f35ad02cd Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 6 Oct 2016 12:43:33 -0700 Subject: [PATCH] Add comment --- core/field_angle.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/field_angle.js b/core/field_angle.js index 698bac234..5bea3cbc1 100644 --- a/core/field_angle.js +++ b/core/field_angle.js @@ -167,6 +167,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() { }, svg); } svg.style.marginLeft = (15 - Blockly.FieldAngle.RADIUS) + 'px'; + + // The angle picker is different from other fields in that it updates on + // mousemove even if it's not in the middle of a drag. In future we may + // change this behavior. For now, using bindEvent_ instead of + // bindEventWithChecks_ allows it to work without a mousedown/touchstart. this.clickWrapper_ = Blockly.bindEvent_(svg, 'click', this, Blockly.WidgetDiv.hide); this.moveWrapper1_ =