I want to know how to differentiate between two different events "Roll up" and "roll down". Function1 should execute on rollup and Function2 on rolldown.
I just saw onmousewheel
and onscroll
events, which are called on roll up/down both.
for clearing my question :
function up(){ alert("you rolled up with mouse wheel")};
function down() { alert("you rolled down with mouse wheel")};
How to avoid above functions to be executed at the same time?