Browse Source

Disable touch move events when `config.draggable` is false. (#359)

pull/132/merge
Alan Zhang 7 years ago
committed by Matthew Petroff
parent
commit
4a9206d6a9
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/js/pannellum.js

+ 4
- 0
src/js/pannellum.js View File

@@ -803,6 +803,10 @@ function onDocumentTouchStart(event) {
* @param {TouchEvent} event - Document touch move event.
*/
function onDocumentTouchMove(event) {
if (!config.draggable) {
return;
}

// Override default action
event.preventDefault();
if (loaded) {


Loading…
Cancel
Save