Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
Winston committed Aug 20, 2015
1 parent 96d5987 commit 575b712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/blockly.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 575b712

Please # to comment.