# Images in the gallery swapping

**URL:** <https://forums.realmacsoftware.com/t/images-in-the-gallery-swapping/47481>\
**Category:** Elements\
**Created:** [May 9, 2025, 8:24am UTC](https://forums.realmacsoftware.com/t/images-in-the-gallery-swapping/47481 "2025-05-09T08:24:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [May 9, 2025, 8:24am UTC](https://forums.realmacsoftware.com/t/images-in-the-gallery-swapping/47481/1 "2025-05-09T08:24:57Z")

</div>

in my image gallery if you bring the edge in the images change,  
see this in action with the video I put on my website test page  
here. Not sure if this is related to the scroll bar Mac OS issue

> **[Test Page](https://morris56.uk/page/)**

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [May 9, 2025, 11:14am UTC](https://forums.realmacsoftware.com/t/images-in-the-gallery-swapping/47481/2 "2025-05-09T11:14:26Z")

</div>

This happens because the gallery layout adjusts when you resize the window. The browser keeps the same scroll position in pixels, but after resizing, it might “snap” to a different image that’s now closer to the center. It’s just how scroll snapping works. That said, **most users will never notice** this since they’re not resizing their browser while viewing the gallery.

---

<div class="post-metadata">

**Author:** ![Godber](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/godber/32/26521_2.png) [@Godber](https://forums.realmacsoftware.com/u/Godber)\
**Post date:** [May 9, 2025, 4:11pm UTC](https://forums.realmacsoftware.com/t/images-in-the-gallery-swapping/47481/3 "2025-05-09T16:11:31Z")

</div>

Fair enough. Was just wondering why. Thanks
