Fixed Closing lightbox scrolls document to last viewed image

Kirby

Well-known member
Affected version
2.3.4
Steps to reproduce
  1. Enable option Lightbox displays all attached thumbnails on page
  2. View a thread that has embedded thumbnails in multiple posts
  3. Click on the first thumbnail
  4. Use the lightbox and click Next until the last image is shown
  5. Close the lightbox by clicking the X
Expected Behaviour
The page is still at the same scroll position as it was before opening the lightbox

Actual Behaviour
The page is scrolled down to the last image

Impact
This seems to be a regression from XF 2.2 behaviour where this did not happen.

Suggested Fix
Set Fancybox option placeFocusBack to false
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.5).

Change log:
Do not scroll to last viewed image when closing the lightbox
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom