Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking an image moves page to bottom of that image #1

Open
TheLastProject opened this issue Feb 13, 2018 · 0 comments
Open

Clicking an image moves page to bottom of that image #1

TheLastProject opened this issue Feb 13, 2018 · 0 comments

Comments

@TheLastProject
Copy link
Owner

Paraphrased from an e-mail report:

When you click on an image and CSSBox is activated, the web page moves up so that the image that is clicked on is at the top of the browser window. It would be great if when clicking on the image, the web page stays in it’s current state instead of moving up.

My response:

This is indeed a current limitation to CSSBox and I do feel it most likely isn't fixable in CSSBox itself due to limitation of CSS3.

I would imagine one way to deal with it would be to use JavaScript to capture the current scrolling position before someone clicks a link that's inside a #cssbox, and to reset the position after the original event propagates.

Other suggestions or fixes (especially with working code) are very welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant