How to find mouseclick first and if not clicked, then go for mouseover ?
I had implemented two types of functionalities in two mouse events. One in mouseover and the other in mouseclick.
If I clicked, i need to trigger mouseclick event first, instead of mouseover event. I know that by default, mouseover is triggered first. But how to achieve this type of scenario.
Code:
$('.example').mouseover(function (event) {
// ...
//mouse over logic
// ...
});
$('.example').mouseclick(function (event) {
// ...
//mouse click logic
// ...
});
Note:
Alos, I tried with timer, set control flags but in each try, only
mouseoveris triggerd first. Bothmouseoverandmouseclickhas different functionalities. If both are same, then we can put in common. But, here the case is different. I had also searched over the net for this. But nothing helped till now. Thanks.
What about defining the mouseover event in the click event?
Example:
I didn't tested tough...