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

How to check mouse position

$
0
0

Hi, i'm trying to do a drag and drop and validate it, now i have my drag and drop but i can't validate if i drag the correct answer to the correct place.

 

Is there any chance to check the mouse position so when i'm draggin i can use sth like:

 

if (mouseX == 50 && mouseY == 100){

     //my answer is correct

} else {

//ansewer incorrect

}

 

 

Please help me =)


Viewing all articles
Browse latest Browse all 9897

Trending Articles



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