cbpowell / MarqueeLabel

A drop-in replacement for UILabel, which automatically adds a scrolling marquee effect when the label's text does not fit inside the specified frame
MIT License
4.21k stars 564 forks source link

Auto Scrolling Paused #287

Open Armi4d opened 2 years ago

Armi4d commented 2 years ago

Hi, Mr.Powell First thing first, I really appreciate your code however I faced some problem.

Expected Behavior

I want the marquee label to keep auto scrolling without stopping

Actual Behavior

It suddenly stop after the text is finished for a short instance before start scrolling again.

I want to know if there is any possible way to prevent this happening.

Thank you

Armi4d commented 2 years ago

PS- I dont need the data to change like one of the issues already instated.

RezamirRahizar commented 8 months ago

@Armi4d you can achieve this by setting the animationDelay to 0.

cbpowell commented 7 months ago

Sorry I never replied on this one! @RezamirRahizar is right, you can set the delay to zero and there won’t be an intentional pause.

That said, MarqueeLabel isn’t particularly optimized for the use case of a constant speed scroll with zero delay. I think it’s gotten better with modern hardware, but you might see a small stutter as it restarts the animation.