I used css to change background image of a div to imitate button pressed, as the following:

      background: url(someimage.png); 
But, when i press the div and slide my finger out the div, the div stays active (even though I remove my finger from the screen) and someimage.png is still shown.

Is there any way to prevent this, thanks,