Git Product home page Git Product logo

Comments (5)

armin-pfaeffle avatar armin-pfaeffle commented on July 17, 2024

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.

scooterlord avatar scooterlord commented on July 17, 2024

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.

armin-pfaeffle avatar armin-pfaeffle commented on July 17, 2024

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.

scooterlord avatar scooterlord commented on July 17, 2024

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.

armin-pfaeffle avatar armin-pfaeffle commented on July 17, 2024

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)

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.