From 7104aec3d1a578ca2ea70a56fb59cd42cd539112 Mon Sep 17 00:00:00 2001 From: Justin Date: Thu, 17 Aug 2023 14:37:29 +0800 Subject: [PATCH] compensate for feature title of r/place --- stockTicker.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/stockTicker.py b/stockTicker.py index eacf61b..1c1c305 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -381,9 +381,19 @@ class StockTicker(): offset_x = 0 if animation == 'continuous': - offset_x = 128 + if options[i % len(options)] == 'r/place (Reddit)': + offset_x = 213 + else: + offset_x = 128 elif animation in ['up', 'down']: - offset_x = max(0, 128-img_width) + 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