Fix jitter moving vertically too; should be x-axis only

This commit is contained in:
poprhythm committed 2026-10-09 15:35:29 -04:00
1 parent 4cf6c7d506
commit 332b8231aa
1 file changed
+1 -1
+1 -1
View File
@@ -510,7 +510,7 @@ def _glitch_jitter(zoom):
shift = random.number(0, 2) - 1 # random.number requires min >= 0 shift = random.number(0, 2) - 1 # random.number requires min >= 0
keyframes.append(animation.Keyframe( keyframes.append(animation.Keyframe(
percentage = float(tick) / total_ticks, percentage = float(tick) / total_ticks,
transforms = [animation.Translate(shift, shift)], transforms = [animation.Translate(shift, 0)],
)) ))
tick += GLITCH_HOLD_TICKS tick += GLITCH_HOLD_TICKS
keyframes.append(animation.Keyframe( keyframes.append(animation.Keyframe(
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.