From 793918c2556aca9a19ef7c5aa672a01ec67430ef Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Mon, 23 Oct 2017 19:21:32 -0400 Subject: [PATCH] Don't show hand cursor when dragging is disabled. --- src/js/pannellum.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index de0f266..fbfede2 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -431,7 +431,8 @@ function init() { } } - uiContainer.classList.add('pnlm-grab'); + if (config.draggable) + uiContainer.classList.add('pnlm-grab'); uiContainer.classList.remove('pnlm-grabbing'); }