Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
mousemove show/hide controls should target pswp container not window/document #1547
If you implement PhotoSwipe "inline", the controls show whenever the mouse is moved wherever in the window - this doesn't make sense if the user is focusing on some other aspect of the page.
It would be nicer if the controls showed only when the user's mouse is focused on the pswp container.
Is there any reason why you wouldn't target the container? It seems as if targeting the container would have the desired effect irrespective of the value of the modal option.