Skip to main content
CHILL BEAN
Participating Frequently
Nov 13, 2022 6:52 PM UTC
Question

How to set image zoom to scroll in adobe animate

How to set image zoom to scroll in adobe animate?

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    kglad
    Community Expert
    Community Expert
    Nov 13, 2022 7:15 PM UTC

    you can zoom using the magnifing glass, if you're trying to magnify in the ide,

     

     

    if you're trying to do something else, explain.

     

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/  

     

    <moved from using the community>

    Translate
    CHILL BEAN
    Participating Frequently
    Nov 13, 2022 7:24 PM UTC

    i trying to set zoom on mouse scrool

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 13, 2022 7:54 PM UTC

    because it's not clear exactly what you want, you'll need to encode that, https://www.createjs.com/docs/easeljs/modules/EaselJS.html

     

     

    but this should get you started:

     


    window.addEventListener('wheel', f.bind(this));

     

    function f(e) {
    if(e.deltaY>0){

    //do whatever

    } else {

    // do whatever else

    }

    }

    Translate