Comments (5)
Hey! Well, more or less I work on this plugin if I need some changes, but until now there was no need for.
Double-tapping is already implemented. Have a look at the corresponding settings. Is that what you were looking for?
from ap-image-zoom.
Looks like this was it - but would be nice to have mouse double-click also for zooming in and out. Also I just noticed you are using absolute transformations (left, top) instead of css3 transforms (transform:translateX and transform:translateY)- this would drastically increase the performance of the panning!
from ap-image-zoom.
What exactly do you mean with zooming in and out? What is not possibile with doubleClick
option?
No, I'm using transform
! Have a look at updateSizeAndPosition. There you can see that if SVGs are used or this.settings.hardwareAcceleration
is true (default: true) then CSSs transform
is used.
Soon, I will publish a documentation for that plugin!
from ap-image-zoom.
You can use css3 transforms for non-svg elements as well and you should - the performance is a lot better. Instead of using left: value you can use transform:translateX(value).
Concerning double-click, all I meant was to 'fake' double tap with double-click - first double-click zooms in image, second double-click zooms out image.
Yeah, documentation would be nice, your plugin has a lot of potential! Keep up the good work!
from ap-image-zoom.
My plugin uses transform
per default! I know about the performance issue of using left/top. But in some cases it makes sense to use that way (e.g. supporting older IE versions).
from ap-image-zoom.
Related Issues (3)
- SVG Support? HOT 10
- contain minZoom not show correct values HOT 3
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 ap-image-zoom.