nanostudio-org / nanogallery2

a modern photo / video gallery and lightbox [JS library]
https://nanogallery2.nanostudio.org
755 stars 111 forks source link

Android issues #25

Closed JonMerlevede closed 7 years ago

JonMerlevede commented 7 years ago

First off, thanks for this beautiful library, it is very user-friendly and does precisely what I want it to! I submitted a couple of nice-to-have feature requests separately from this issue to make them easier to track.

I'm having some issues with Chrome-on-Android:

I know these descriptions are not very specific, please let me know if I can help by getting you more detailed information.

Kris-B commented 7 years ago

Yes, there are some problems with gestures on Android/Chrome. nanogallery2 is using hammer.js and several people have issues with the latest versions of chrome on android. I could not find any good workaround for now. Other gesture libraries have similar problems. I'm still searching for a fix...

The last point is related to high DPI display. Images are "zoomed-in" on these displays to avoid blurring. But this is only possible if the size of the image is known. Ideally, the image size should be defined with data-ngimageWidth/data-ngimageHeight or width/height options. If not, this kind of effects can happen.

Kris-B commented 7 years ago

I made some changes on the gesture handling. Could you please check the gallery on the intro page http://nanogallery2.nanostudio.org/ to see if you still have issues on Android? Thanks!

JonMerlevede commented 7 years ago

The demo gallery seems to be working fine for me! I was already defining width and height options, but I'll check again to see if I didn't make a mistake.

JonMerlevede commented 7 years ago

I still haven't found a way around the black border surrounding preloaded images.

I now correctly specify the width and the height of my images using the width and height properties; everything is working fine on desktops. When I do not resize my images, everything works fine on Chrome on Android too, even without specifying dimensions. However, when I resize images to correspond precisely to the size of the screen, a black border surrounds images that are preloaded. Images are loaded at a resolution that should allow for an unstretched preview (e.g. 1440x1080 on the SGS6 that I am now testing with) and given correct width and height properties.

I do not have this issue with the gallery on the intro page, but then those pictures are usually wider than 1440px.

Kris-B commented 7 years ago

I made some changes in the management of image sizes: are you interested in testing a beta version?

Kris-B commented 7 years ago

changes released in v1.3.0 https://github.com/nanostudio-org/nanogallery2/releases/tag/v1.3.0

I'm closing this issue for now, please open it again if you still have problems