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"
This commit is contained in:
Winston
2015-08-20 15:18:58 -07:00
parent 96d5987db1
commit 575b712462

View File

@@ -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();