Merge pull request #162 from skcamp/fix-issue-161-pinch-gesture-error

fix: https://github.com/google/blockly/issues/161
This commit is contained in:
Neil Fraser
2015-08-21 14:39:15 -07:00

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