From cdef09268397ccbff7d8b223b39f566bed37dcb2 Mon Sep 17 00:00:00 2001 From: Karan Purohit Date: Tue, 14 Feb 2017 23:00:14 +0530 Subject: [PATCH] Potential bug fix for issue #661 --- core/field_angle.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/field_angle.js b/core/field_angle.js index be88c27f7..758df2954 100644 --- a/core/field_angle.js +++ b/core/field_angle.js @@ -57,7 +57,7 @@ goog.inherits(Blockly.FieldAngle, Blockly.FieldTextInput); * Round angles to the nearest 15 degrees when using mouse. * Set to 0 to disable rounding. */ -Blockly.FieldAngle.ROUND = 15; +Blockly.FieldAngle.ROUND = 1; /** * Half the width of protractor image. @@ -155,7 +155,8 @@ Blockly.FieldAngle.prototype.showEditor_ = function() { this.line_ = Blockly.utils.createSvgElement('line', {'x1': Blockly.FieldAngle.HALF, 'y1': Blockly.FieldAngle.HALF, - 'class': 'blocklyAngleLine'}, svg); + 'class': 'blocklyAngleLine', + 'style': 'pointer-events: none;'}, svg); // Draw markers around the edge. for (var angle = 0; angle < 360; angle += 15) { Blockly.utils.createSvgElement('line', {