Giter Club home page Giter Club logo

Comments (3)

xyxiao001 avatar xyxiao001 commented on June 12, 2024

缩放,是通过鼠标滚动然后动态计算的,会有一个递增和递减的控制,想保持缩放大小一致,可以手动修改scale

from vue-cropper.

ValueLan avatar ValueLan commented on June 12, 2024

请问能否这样,如果放大超过最大值,那么放大等于最大值。
或者您说的方式,我应该在哪个事件,或者回调函数里执行?

from vue-cropper.

xyxiao001 avatar xyxiao001 commented on June 12, 2024

目前可以通过 @imgMoving或者 @realtime 然后通过 this.$refs.cropper.scale 来获取和修改大小,但是缩放鼠标滚轮可能会触发多次,需要做节流处理

from vue-cropper.

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.