photoswipe-masonry's People
Forkers
tobiasmalikowski greising bramesposito thanks2music msufiannasir pleasenophp islaconmigo mt-webdesign larsschellhas krutimitpathphotoswipe-masonry's Issues
Pull down to close gallery not working in FF 56.0 for desktop
photoswipe.com provides the option to close the gallery when the image is pulled down, either with mouse or touch. The plugin version however does not close the gallery when either pulling down the photo with mouse or touch (e.g. touch enabled laptop screens) in Firefox 56.0 for desktop. It does however work on latest version Firefox mobile as well as in Chrome latest version for desktop as well as mobile. Have a look at your demo with latest Firefox for dekstop to reproduce this. It would be great if you could have look into fixing this, might also sort itself out with a new version of Firefox, fingers crossed. Thank you.
Hyperlinking to a Photo broken
From WillyWonder (@willywonder)
Works unless the link is โฆ pid=1, in which case pid=3 is displayed (possibly because 3 images are loaded in memory?). Can be tricked into displaying pid=1 by setting the link to a pid number greater than actually exists. Should be noted that when linking to a particular image in the gallery, one odd-ball thing happens: After using the link and perhaps swiping thru a few images and then leaving the lightbox and the gallery displays, then say scrolling thru the gallery and clicking on a thumbnail, the originally linked image displays (not the image clicked on). After leaving the lightbox a second time, the gallery images then display the correctly when clicked on.
https://wordpress.org/support/topic/hyperlinking-to-a-photo-in-the-gallery/#post-9398704
Lazy load kills the gallery
When lazyload is enabled, either by WordPress natively or through a plugin (e.g. Smush), the gallery is not correctly displayed.
I guess, the plugin cannot calculate the correct positions because the dimensions don't exist, yet.
I don't know exactly how to solve this issue. The images are correctly positioned when all images are loaded and a rescale event triggers a new positioning. Maybe there is a way to trigger this recalculation when images are loaded? Or maybe you could add the images progressively on scroll.
An easy workaround would be to add a class to the img-tags in order to exclude this class from lazy-loading. I guess, I'll try to implement such a workaround.
If caption has an a, undefined error
My gallery has tags with links in their image captions, the a filter gets wrong links without a size and I get undefined errors at split part.
$pic.find('.msnry_item > a').each(function() {
This was enough to fix it for me.
Feature Request: Option to link to destination page instead of open in lightbox.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.