Fix/slideshow loop#1099
Conversation
📝 WalkthroughWalkthroughThese changes implement slideshow looping functionality by adding an optional callback parameter to the useSlideshow hook and integrating it into MediaView to reset the image index and zoom state when reaching the final image. A copyright year is also updated to be dynamically generated. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@rahulharpal1603
Fixes: #1090
Description
Fixed the slideshow stopping at the last image instead of looping continuously.
Changes
Updated useSlideshow hook to support looping via optional onLoopToStart callback
Added handleLoopToStart in MediaView.tsx to reset to first image
Testing
Slideshow now loops back to first image
Summary by CodeRabbit
New Features
Improvements
✏️ Tip: You can customize this high-level summary in your review settings.