From 1034fb4b5c46db0aa128c5d3c0846c245b60116f Mon Sep 17 00:00:00 2001 From: j Date: Wed, 5 Dec 2018 17:58:35 +0100 Subject: [PATCH] fix offset --- static/js/cccc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/cccc.js b/static/js/cccc.js index 4d5b404..ac516cf 100644 --- a/static/js/cccc.js +++ b/static/js/cccc.js @@ -605,13 +605,13 @@ function shiftPresets(offset, callback) { presets = response.result.presets presets.forEach(function(preset) { if (offset.azimuth) { - preset['position']['azimuth'] += offset.azimuth + preset['position']['azimuth'] -= offset.azimuth } if (offset.elevation) { - preset['position']['elevation'] += offset.elevation + preset['position']['elevation'] -= offset.elevation } if (offset.absoluteZoom) { - preset['position']['absoluteZoom'] += offset.absoluteZoom + preset['position']['absoluteZoom'] -= offset.absoluteZoom } }) api('setPresets', {