For my app, I need to replicate the hover effect from CSS on mobile devices. Users can click and drag elements, and when they drag over certain elements, I want those elements to change z-index and other styles. Is there a way in Angular / Ionic or even just using pure CSS to achieve this touch "hover" effect?
I have attempted to add
.myClass:hover{
color:#000;
background-color:red;
}
as a simple test to see if it works, and while it does work when hovering with a mouse, it doesn't work while clicking and dragging. Any suggestions?