瀏覽代碼

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

pull/132/merge
Alan Zhang 7 年之前
committed by Matthew Petroff
父節點
當前提交
4a9206d6a9
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/js/pannellum.js

+ 4
- 0
src/js/pannellum.js 查看文件

@@ -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…
取消
儲存