Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

mouse wheel action

$
0
0

Hi all,

 

I want to trigger a specific action when the visitor uses the mouse wheel. Normaly, I know how to do it using the window scroll function, but in my situation, the page is static and not scrolling. The scroling bodies are placed inside clips or symbols.

I am looking for a similar solution like:

 

if (e.which == 40) {

          sym.getSymbol("mainbody").play();

}

(when pressed down arrow, mainbody plays.)

 

Is there any way to apply it to mouse wheel like for example if the user scrolls the wheel down, do something.

 

swiping down or up (if possible) may also help.

 

Thanks all in advance...


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>