fix offset
This commit is contained in:
parent
826b51704f
commit
1034fb4b5c
|
@ -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', {
|
||||
|
|
Loading…
Reference in New Issue
Block a user