Browse Source

make pannellum in touch only device scrollable when config.draggable is false.

pull/359/head
Alan Zhang 7 years ago
parent
commit
a1fb9bfaac
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