Fix floating animation (#27044)

This commit is contained in:
dj-34
2024-10-12 22:09:11 +05:00
committed by GitHub
parent 80821c0b7a
commit 84ff9d46b6
+1 -2
View File
@@ -835,8 +835,7 @@
fixed = TRUE
if(on && !floating && !fixed)
animate(src, pixel_y = pixel_y + 2, time = 10, loop = -1)
sleep(10)
animate(src, pixel_y = pixel_y - 2, time = 10, loop = -1)
animate(pixel_y = pixel_y - 2, time = 10, loop = -1)
floating = TRUE
else if(((!on || fixed) && floating))
animate(src, pixel_y = get_standard_pixel_y_offset(), time = 10)