splitbrain / dokuwiki-plugin-gallery

Creates a gallery of images from a namespace or RSS/ATOM feed in DokuWiki
http://www.dokuwiki.org/plugin:gallery
GNU General Public License v2.0
21 stars 25 forks source link

Clicking on a gallery image snaps the view back to the top of the page #188

Open Zichqec opened 1 year ago

Zichqec commented 1 year ago

Clicking on a gallery image takes the view back to the top of the page. As my wiki positions galleries at the bottom of pages, which are sometimes long, this is very irritating. You can try it on this page.

gallery_issue

I very frequently want to get a closer look at an image, but not scroll through the entire gallery, so this greatly interrupts my browsing experience.

splitbrain commented 1 year ago

I can not reproduce this in the default dokuwiki template and have no idea what causes this in your template.

johngnl commented 8 months ago

I tried this on your page, and I can reproduce this. However, I think it has to do with the new way of work of the new version of this plugin. It doesn't seem to be a bug.

When you want to see the images in gallery mode, single click (left) on an image. To zoom in, double click on the image, to zoom out again double click. To go to the next image, use the arrow on the right. Or click on the image, keep the button pressed and swipe to the left keeping the arrow on the image. Do NOT click outside the boundaries of the image, because gallery mode will be closed. The same applies to clicking just beside the arrow key. Only click when you (still) see the hand icon.

Hope this helps.

Zichqec commented 8 months ago

I tried this on your page, and I can reproduce this. However, I think it has to do with the new way of work of the new version of this plugin. It doesn't seem to be a bug.

When you want to see the images in gallery mode, single click (left) on an image. To zoom in, double click on the image, to zoom out again double click. To go to the next image, use the arrow on the right. Or click on the image, keep the button pressed and swipe to the left keeping the arrow on the image. Do NOT click outside the boundaries of the image, because gallery mode will be closed. The same applies to clicking just beside the arrow key. Only click when you (still) see the hand icon.

Hope this helps.

This unfortunately does not help my issue. The goal is to be able to enter and exit gallery mode at will without jumping to the top of the page every time, because sometimes you are reading something and need to see one of the images in a larger view, then exit to resume your reading. Having it jump to the top is extremely disruptive to user experience.

I do understand how to operate the lightbox mode, but my issue is not about operating lightbox mode, it's about what happens when you leave lightbox mode. And this issue did not happen on previous versions of the plugin; we used to be able to enter and exit lightbox mode just fine without the view moving.