Code Monkey home page Code Monkey logo

Comments (4)

twhitbeck avatar twhitbeck commented on August 12, 2024

I'm not sure I understand the problem. Your image isn't zooming when you scroll your mouse wheel? Please share some more info. Thanks

from angular-cropper.

alnimu avatar alnimu commented on August 12, 2024

First I load an image, then when I scroll the wheel (there is no difference scroll down or scroll up), the image zooms out, when it reaches max zoom I can only drag the image. It happens because in scroll event there is no property deltaY.
wheel_1
wheel_2

from angular-cropper.

twhitbeck avatar twhitbeck commented on August 12, 2024

You say when it reaches max zoom. If it's max zoom, what are you expecting the mouse wheel to do? I'll be in gitter for a bit, can you join to explain it to me more?
https://gitter.im/twhitbeck/angular-cropper

from angular-cropper.

twhitbeck avatar twhitbeck commented on August 12, 2024

Ok, issue has been resolved. If jQuery is present, the event does not have deltaY which we use. In this case we must use e.originalEvent.deltaY. Please update.

from angular-cropper.

Related Issues (9)

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.