Commit 575b7124 authored by Winston's avatar Winston

fix: https://github.com/google/blockly/issues/161

On iOS, if I use a pinch gesture in the workspace, these errors appear in the console:

Error: Invalid value for <rect> attribute x="NaN"
parent 96d5987d
......@@ -294,6 +294,9 @@ Blockly.onMouseUp_ = function(e) {
* @private
*/
Blockly.onMouseMove_ = function(e) {
if (event.touches && event.touches.length >= 2) {
return // multi-touch gestures won't have e.clientX
}
var workspace = Blockly.getMainWorkspace();
if (workspace.isScrolling) {
Blockly.removeAllRanges();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment