From 4718fe4366da2e994fcedfe80089727e19ed1a04 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Sat, 20 Jan 2018 21:18:58 -0800 Subject: [PATCH] Fix lint errors. --- src/dat/controllers/ColorController.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dat/controllers/ColorController.js b/src/dat/controllers/ColorController.js index a243cbc..649edae 100644 --- a/src/dat/controllers/ColorController.js +++ b/src/dat/controllers/ColorController.js @@ -220,7 +220,7 @@ class ColorController extends Controller { if (e.type.indexOf('touch') === -1) { e.preventDefault(); } const fieldRect = _this.__saturation_field.getBoundingClientRect(); - const {clientX, clientY} = (e.touches && e.touches[0]) || e; + const { clientX, clientY } = (e.touches && e.touches[0]) || e; let s = (clientX - fieldRect.left) / (fieldRect.right - fieldRect.left); let v = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top); @@ -249,7 +249,7 @@ class ColorController extends Controller { if (e.type.indexOf('touch') === -1) { e.preventDefault(); } const fieldRect = _this.__hue_field.getBoundingClientRect(); - const {clientY} = (e.touches && e.touches[0]) || e; + const { clientY } = (e.touches && e.touches[0]) || e; let h = 1 - (clientY - fieldRect.top) / (fieldRect.bottom - fieldRect.top); if (h > 1) {