piskelapp / piskel

A simple web-based tool for Spriting and Pixel art.
http://piskelapp.com
Apache License 2.0
11.09k stars 774 forks source link

Loop through the frames with up and down keys #1109

Open Txori opened 11 months ago

Txori commented 11 months ago

The modified code allows the user to loop through the frames of an animation using the up and down keys, ensuring that they don't get stuck at the start or end of the animation.

This behavior is often desirable in animation or slideshow applications, as it provides a more seamless user experience.

The code checks if the user is at the beginning or end of the animation and loops back to the other end when they try to go beyond those limits.