CSSBox icon indicating copy to clipboard operation
CSSBox copied to clipboard

Clicking an image moves page to bottom of that image

Open TheLastProject opened this issue 7 years ago • 0 comments

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!

TheLastProject avatar Feb 13 '18 17:02 TheLastProject