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

Understanding Touch & Mouse events for mobile based browsers. [2014.1.1]

$
0
0

Hi all..

 

On computer based browsers i use "mouseOver" & "mouseOut" to control the look of a button

 

On mobile based browsers is use "touchStart" & "touchEnd" to control the look of a button

 

But... it is not possible to intergrate these commands into one composition and get the correct effect, i understand this is because mobile based browsers can attempt to emulate how a computer based browser works, i.e. clicking on a button on a web based browser proberbally runs not only "touchStart" but also "mouseOver"

 

So my initial question, Can anyone help me set up a bit of javascript to disable or enable certain touch or mouse events if a mobile based browser is present.

 

and.. how does everyone else manage such effects using one composition for both mobile & computer based browsers..

 

many thanks....

 

 

justin


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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