fix offset

This commit is contained in:
j 2018-12-05 17:58:35 +01:00
parent 826b51704f
commit 1034fb4b5c

View File

@ -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', {