diff --git a/src/threesixty.js b/src/threesixty.js index c8141c5..0d31fd7 100644 --- a/src/threesixty.js +++ b/src/threesixty.js @@ -468,6 +468,9 @@ * @params {Object} [event] */ base.trackPointer = function (event) { + if (AppConfig.clickFree) { + AppConfig.dragging = true; + } if (AppConfig.ready && AppConfig.dragging) { AppConfig.pointerEndPosX = base.getPointerEvent(event).pageX; if (AppConfig.monitorStartTime < new Date().getTime() - AppConfig.monitorInt) { @@ -850,7 +853,12 @@ * @cfg {Number} playSpeed * Value to control the speed of play button rotation */ - playSpeed: 100 + playSpeed: 100, + /** + * @cfg {Boolean} clickFree + * Set it to true if you want to disable mousedrag and move with mouse movements + */ + clickFree: false }; base.init(); };