I rewrote the modal view to use touch events and CSS transitions instead of scroll events. This fixes scroll issues in some browsers. The JavaScript part scales better with large galleries.
Now there is also a zoom function to show the current image in 1:1 mode. Just click or tap on it to zoom in, click or tap again to zoom out.
The gallery should now be feature complete compared with the current photoswipe implementation. I’ll fix some minor internal issues and create a PR afterwards.
I’d be glad to get feedback for this new version.
Installation:
Unpack the archive, run ./install.sh (Linux/BSD/macOS only) and restart darktable.
If you installed it for the first time, you need to run (or restart) darktable and enable the module in the Lua script manager (bottom left corner in the light table). If you don’t have the Lua script manager enabled yet, follow the instructions at darktable lua documentation - installation
I finally created a pull request to add the export module to the lua-scripts repository. You might use this to get the latest code. I’ll not post any updates in this thread anymore. The preferred place to discuss this feature is now the pull request on Github. Of cause, you can still ask any questions, send feedback or make suggestions here on pixls if you don’t have a Github account.
The PR was merged into the official lua-scripts repository. If you use this, it would be nice if you give it a try and report back.
So far it is only tested on Linux. I tried to make all file operations portable so I’m interested in reports from macOS and Windows users. If you encounter any issues, please run darktable with the -d lua option and provide the output.