Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will Not Unzoom #1

Open
semireg opened this issue May 19, 2019 · 5 comments
Open

Will Not Unzoom #1

semireg opened this issue May 19, 2019 · 5 comments

Comments

@semireg
Copy link

semireg commented May 19, 2019

This looks like a great start to a plugin I'm in need of. Awesome. However, I can't get the images to unzoom.

I'm using https://github.com/pretzelhands/gatsby-starter-semantic-ui as the starter with this configuration.

  plugins: [
    'gatsby-plugin-react-helmet',
    'gatsby-plugin-less',
    `gatsby-plugin-sharp`,
    `gatsby-transformer-sharp`,
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: `gatsby-remark-images`,
            options: {
              maxWidth: 300,
              linkImagesToOriginal: false,
            },
          },
          `gatsby-remark-images-zoom`,
          `gatsby-remark-prismjs`,
          `gatsby-remark-copy-linked-files`,
          `gatsby-remark-smartypants`,
        ],
      },
    },
    {
      resolve: `gatsby-source-filesystem`,
      options: {
        name: 'images',
        path: `${__dirname}/src/data/images/`,
      },
    },

2019-05-19 at 3 43 PM

I get the unzoom cursor, but it doesn't do anything.

2019-05-19 at 3 43 PM

Thoughts?

@baptadn
Copy link
Member

baptadn commented May 21, 2019

Hello @semireg, is the overlay unzooms when you scroll down? Can you reproduce the issue in http://codesandbox.io and send me the link?

@kylecrsn
Copy link

I get the same issue as @semireg, you can continue to scroll up/down the page but nothing is clickable through the overlay (ie scrolling does not zoom you out), requires you to refresh the page to escape it.

@kylecrsn
Copy link

After investigating this some more, I noticed that the smooth animation while zooming in also wasn't working, which made me wonder if maybe these problems were only in the development environment (gatsby develop) and not in the production environment (gatsby build & serve).

Turns out that was the case, neither of those issues were present when actually deployed, so this is something to do with how the app is running when in development. Hope that helps

@barbalex barbalex mentioned this issue May 26, 2019
@JaeYeopHan
Copy link

JaeYeopHan commented Jun 18, 2019

@DenysVuika
Copy link

I can confirm that this plugin suddenly stopped working with all the issues mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants