Giter Club home page Giter Club logo

Comments (8)

drozhzhin-n-e avatar drozhzhin-n-e commented on August 11, 2024

@apleshakov88 Hey. Do you want to customize the scale for which event? When scaling with a button or double tap?

from ngx-pinch-zoom.

apleshakov88 avatar apleshakov88 commented on August 11, 2024

Yep, for button. I can use doubleTapScale for double tap. So it would be great to have similar solution for button instead of hardcoded * 2.
Many thanx

from ngx-pinch-zoom.

drozhzhin-n-e avatar drozhzhin-n-e commented on August 11, 2024

yes, I agree. I will do it.

from ngx-pinch-zoom.

apleshakov88 avatar apleshakov88 commented on August 11, 2024

Thanx! И удачи в дальнейшем!!!

from ngx-pinch-zoom.

drozhzhin-n-e avatar drozhzhin-n-e commented on August 11, 2024

@apleshakov88 Спасибо!

from ngx-pinch-zoom.

Xample avatar Xample commented on August 11, 2024

@drozhzhin-n-e In the same state of mind, I would even suggest something like: min-zoom: 0.5, max-zoom: 1 (I need to have a smaller zoom in the beginning)

from ngx-pinch-zoom.

drozhzhin-n-e avatar drozhzhin-n-e commented on August 11, 2024

To set the scaling factor for double tap, use the double-tap-scale property. Zoom factor for the zoom button: zoomControlScale

from ngx-pinch-zoom.

drozhzhin-n-e avatar drozhzhin-n-e commented on August 11, 2024

@Xample You can set the original size of the image by resizing the container. Set the overflow property so that the container does not limit the image when scaling.

<div class="container" style="overflow: hidden">
    <pinch-zoom overflow="visible" style="width: ...; height: ...">
</div>

from ngx-pinch-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.