Need help with a Lightbox

Hey - I’m working on a clients website where the client would like a Lightbox to appear on Hover (I have figured this out and it is working smoothly) However every time the Lightbox closes the parent page scrolls all the way to the top which is not what I am looking for - is there any way to stop this scrolling once I close the Lightbox? I’d like the site visitor to be exactly where they were once the lightbox closes