Giter Site home page Giter Site logo

Comments (4)

marconett avatar marconett commented on June 18, 2024 5

Same problem as #47, #39, #11.

two workarounds:

1. setting an initial zoomscale larger than 1

    centerOn={{
        x: 0, y: 0, scale: 1.01, duration: 100
    }}

problem with this: if the user manually zooms all the way out, the problem is there again.

2. enabling swipeDown and settings Threshold to -1

          enableSwipeDown={true}
          swipeDownThreshold={-1}

problem with this: there's no bounceback at all and you can scroll indefinitely on the vertical axis (scrolling the image out if view).

i think the problem stems from people (including myself) trying to use this library to display very large images (like a map), where the lib trying to center and show the image as a whole is unwanted behavior.

would be kind of cool to be able to enable a "Map Mode" or something. it's almost there with the second workaround, there just needs to be a fix for the indefinite vertical scroll.

from react-native-image-zoom.

allthetime avatar allthetime commented on June 18, 2024

Seeing this as well. Also, edges are chopped off landscape images and zooming out to show the whole image also leads to this problem.

from react-native-image-zoom.

ascoders avatar ascoders commented on June 18, 2024

Seems like edges would be chopped when load large image? I'll test it.

from react-native-image-zoom.

allthetime avatar allthetime commented on June 18, 2024

@ascoders I made a workaround by changing _this.scale to 0.6 in image-zoom.component.js. I think I can figure out how to fix it properly but I don't have time right now!

from react-native-image-zoom.

Related Issues (20)

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.