Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/threesixty.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();
};
Expand Down