mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
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:
@@ -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