fix offset
This commit is contained in:
parent
826b51704f
commit
1034fb4b5c
|
@ -605,13 +605,13 @@ function shiftPresets(offset, callback) {
|
||||||
presets = response.result.presets
|
presets = response.result.presets
|
||||||
presets.forEach(function(preset) {
|
presets.forEach(function(preset) {
|
||||||
if (offset.azimuth) {
|
if (offset.azimuth) {
|
||||||
preset['position']['azimuth'] += offset.azimuth
|
preset['position']['azimuth'] -= offset.azimuth
|
||||||
}
|
}
|
||||||
if (offset.elevation) {
|
if (offset.elevation) {
|
||||||
preset['position']['elevation'] += offset.elevation
|
preset['position']['elevation'] -= offset.elevation
|
||||||
}
|
}
|
||||||
if (offset.absoluteZoom) {
|
if (offset.absoluteZoom) {
|
||||||
preset['position']['absoluteZoom'] += offset.absoluteZoom
|
preset['position']['absoluteZoom'] -= offset.absoluteZoom
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
api('setPresets', {
|
api('setPresets', {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user