merge zoom changes

This commit is contained in:
j 2021-09-13 11:26:22 +02:00
parent 0883f50f25
commit 67f565e81b

View File

@ -335,9 +335,12 @@ class Camera:
tilt = max(tilt, delta['elevation'])
changed = True
'''
if delta and 'absoluteZoom' in delta and 'absoluteZoom' in direction:
if zoom and (not delta['absoluteZoom'] or (delta['absoluteZoom'] >= 0) != direction['absoluteZoom']):
zoom = 0
changed = True
elif delta:
print('no absoluteZoom in delta?', delta, direction)
if changed or not n % 500:
print('update move', move, current)