This commit is contained in:
Justin 2023-08-17 15:25:41 +08:00 committed by GitHub
parent 7104aec3d1
commit 31d8ad027b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,20 +380,11 @@ class StockTicker():
img_width, img_height = image.size
offset_x = 0
if animation == 'continuous':
if options[i % len(options)] == 'r/place (Reddit)':
offset_x = 213
else:
offset_x = 128
elif animation in ['up', 'down']:
if options[i % len(options)] == 'r/place (Reddit)':
offset_x = max(0, 213-img_width)
else:
offset_x = max(0, 128-img_width)
# if animation == 'continuous':
# offset_x = 128
# elif animation in ['up', 'down']:
# offset_x = max(0, 128-img_width)
offset_y = 0
#first scroll image in from bottom