diff --git a/.eslintrc b/.eslintrc index 9530b7666..eb00225c8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -25,7 +25,15 @@ } ], "linebreak-style": ["error", "unix"], - "max-len": ["error", 120, 4], + "max-len": [ + "error", + { + "code": 100, + "tabWidth": 4, + "ignoreStrings": true, + "ignoreRegExpLiterals": true + } + ], "no-trailing-spaces": ["error", { "skipBlankLines": true }], "no-unused-vars": ["error", {"args": "after-used", "varsIgnorePattern": "^_"}], "no-use-before-define": ["error"], diff --git a/core/touch_gesture.js b/core/touch_gesture.js index 67ee03238..3303e3a8e 100644 --- a/core/touch_gesture.js +++ b/core/touch_gesture.js @@ -269,7 +269,8 @@ Blockly.TouchGesture.prototype.handleTouchMove = function(e) { gestureScale * Blockly.TouchGesture.ZOOM_IN_MULTIPLIER : gestureScale * Blockly.TouchGesture.ZOOM_OUT_MULTIPLIER; var workspace = this.startWorkspace_; - var position = Blockly.utils.mouseToSvg(e, workspace.getParentSvg(), workspace.getInverseScreenCTM()); + var position = Blockly.utils.mouseToSvg( + e, workspace.getParentSvg(), workspace.getInverseScreenCTM()); workspace.zoom(position.x, position.y, delta); } this.previousScale_ = scale;