Giter VIP home page Giter VIP logo

react-awesome-lightbox's People

Contributors

hakhag avatar romgain avatar theanam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-awesome-lightbox's Issues

Example is missing.

Can you add the example code into the repository?

Thanks! ๐Ÿฆ†๐Ÿฆ†๐Ÿฆ†๐Ÿฆ†

The image is selected by pressing quickly on the next or previous image

The image is selected (with an annoying blue tint) by pressing quickly on the next or previous image, as quickly as a double click. It does not happen in all browsers. For example it happens in Firefox, but not in Chrome. It can be fixed by adding the following to the img style:

userSelect: "none"

lightbox starts open and wont close

hey i like this project! and maybe its my own misunderstanding but the example of usage just has the props of image and title being passed. do i need to pass anything else for the single image lightbox to have initial state as closed and a function to handle the closing of lightbox?

Can't exit when hitting X

Great code. Thank you for sharing. I'm working with React and have included the code successfully. The only issue is the gallery does not close when hitting the X. The other buttons work. Rotate, zoom as such. Just X won't work. Please advise.

Error Decoder , in production

i'm using vite 3 ,
locally everything work fine but after build or in production

i'm facing this issue ,

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: [missing argument].[missing argument]

any suggestion to fix this issue

note : images is links from aws

**vite can't build pkg with default export

Image jumps when you start dragging

Steps to reproduce:

  1. You need 2 images
  2. Select the first one, zoom in and drag it out of center and leave it there
  3. Select the second one, zoom in and start dragging
  4. Your image jumps

I guess when you end dragging you have to reset initX, initY or lastX, lastY or both. I'm not sure about that.

Wide image is cut off after a 90 degree transform

A wide image is cut off after 90 degree transform. Is it intentional to not have a scroll on the modal? (overflow:hidden)
Only means to see the entire image is to hit the zoom icon and then drag the image around

Lightbox fetch image each time it's being visited

What's happening
opened lightbox, it fetches image x and display
then I press next it fetches image y and display

Everything is fine till this point
but when I go to the previous image (image x), it again fetches the image through the API call

Expected Behaviour
when we go back to the already visited image, it shouldn't fetch that image again
instead, it should support caching and get from cache or any better way so that don't have to wait for image to come from server over the api call again.
**caching can be done for some time limit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.