Commit 739918b8 authored by Neil Fraser's avatar Neil Fraser

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

fix: https://github.com/google/blockly/issues/161
parents 2b18078c 575b7124
......@@ -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