Comments (4)
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.
I'll try to clarify:
- Go here http://acornejo.github.io/jquery-cropbox/
- Double-click or pinch on touchscreen f.ex. the smaller shed (garage) to the left in the picture
- 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.
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.
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)
- iPhone dragging issue HOT 5
- Zoom Issue HOT 3
- Enhancement : image format when calling getDataURL() HOT 1
- Wrong Logic in Drag Event
- Crop the full-size image, not the cropbox bounding box HOT 2
- Enhancement : Adding slider for zooming in and out the image.
- Failed to execute 'toDataURL'
- Padding on container
- Zoom not working correctly when maxZoom > 1 and image smaller than cropbox HOT 2
- if you use any js script which are using "mouseup" event isn't working HOT 1
- Currently dragging is not working in latest chrome version HOT 4
- I have added rotation as a feature anyone interested? HOT 2
- Giving alert when width and height less than configuration in css
- Cannot read property 'getBlob' of undefined"
- Drag Not Working on Mobile
- bug report [solved]
- Can i set aspect ratio of cropping area?
- NO DRAG
- Retina support
- Uncaught TypeError: hammerit.get is not a function jquery cropbox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-cropbox.