From 48b40c6ae9ada455ecd716f738954452da543ce2 Mon Sep 17 00:00:00 2001 From: Antonio Laguna Date: Sat, 29 Apr 2017 23:02:31 +0200 Subject: [PATCH] Housekeeping --- src/js/plugins/touch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/plugins/touch.js b/src/js/plugins/touch.js index 7d6303c..d4f2169 100644 --- a/src/js/plugins/touch.js +++ b/src/js/plugins/touch.js @@ -114,7 +114,7 @@ export default class Touch { const info = Touch.normalizeEventInfo(event); - if (event.touches.length == 1) { + if (event.touches.length === 1) { this.startX_ = info.x; this.startY_ = info.y; this.endX_ = info.x; @@ -185,9 +185,9 @@ export default class Touch { } /** - * Get X,Y coordinates from touchs pointers + * Get X,Y coordinates from touch pointers. * @param {Event} event - * @return {array} + * @return {Object} */ static getTouchCoordinates(event) { return [