If you've ever used StackOverflow on the iPad, you may have noticed that in order to delete a comment, you:
- first tap the comment field
- the field gets highlighted in gray and the delete icon appears in gray
- you can then tap on the icon to delete the comment
On a desktop, this process is more straightforward because the mouse can hover over the comment, hiding and making the icon visible on mouseenter
and mouseleave
via jQuery .css
.
I have already set up a posts and comments system on my blog that has this functionality very similar to SO running on a desktop, but I wonder how to achieve SO's iPad functionality.
Any ideas how SO makes the single tap act as a hover on the comments?