mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user