Giter Site home page Giter Site logo

Comments (4)

acornejo avatar acornejo commented on June 27, 2024

I am confused. Both double click to zoom and pinch zoom are already the default.

Check the demo. Please elaborate. Closing this issue for now.

from jquery-cropbox.

Sedins avatar Sedins commented on June 27, 2024

I'll try to clarify:

  1. Go here http://acornejo.github.io/jquery-cropbox/
  2. Double-click or pinch on touchscreen f.ex. the smaller shed (garage) to the left in the picture
  3. The plugin zooms in to the middle of the picture even if you double-clicked to the left

Most users was used to having the picture zooming in where they had double-clicked. I.e. the clicked location is centered in cropbox when zoom occurs.

Like zooming on Google Maps (and a lot of other maps). When double-clicking somewhere, they move the map to zoom in at the clicked location instead of "just" zooming in.
https://www.google.com/maps/place/New+York/@40.7044596,-74.2032232,12z/data=!4m2!3m1!1s0x89c24fa5d33f083b:0xc80b8f06e177fe62

Hope it clears up a bit. Is a bit hard to explain this in text. Could do a nifty screenshot again otherwise :P

from jquery-cropbox.

acornejo avatar acornejo commented on June 27, 2024

Got it. You want the zoom to be centered on the pinch or double click event.

That requires adding a new function that zooms centered on another point. Shouldn't be too hard, when I get some time I'll look into it. (If you want to take a stab at implementing it let me know and I will gladly include your modification in the library)

from jquery-cropbox.

Sedins avatar Sedins commented on June 27, 2024

Exactly. Would be great if it is possible to include that into cropbox.

Would be fun to familiarized with the library, but I have extremely little time left at the moment after work, kids and helping a company getting up and running I'm afraid. Hope it'll work out anyway though.

from jquery-cropbox.

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.