From dba5e8ff976baa52233fea043d2e2ddf2daba090 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Tue, 10 Mar 2015 18:16:13 -0400 Subject: [PATCH] Use strict comparison. --- src/js/pannellum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index ff12272..e563647 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -743,12 +743,12 @@ function keyRepeat() { diff = Math.min(diff, 1.0); // If minus key is down - if (keysDown[0] && config.keyboardZoom == true) { + if (keysDown[0] && config.keyboardZoom === true) { setHfov(config.hfov + (zoomSpeed * 0.8 + 0.5) * diff); } // If plus key is down - if (keysDown[1] && config.keyboardZoom == true) { + if (keysDown[1] && config.keyboardZoom === true) { setHfov(config.hfov + (zoomSpeed * 0.8 - 0.2) * diff); }