Add touch events support (300ms delay to determine hover/click)

And code style inconsistency fixes