Fix for "leaking clicks"

Ok, this is another solution for clicks that are triggered on underlying elements on mobile devices.

This time `mousedown` and `mouseup` events are left intact. Instead touch-events are marked, but we are still waiting for a 'click' event to arrive. And once we got the click event we execute `selectHighlighted `, but only for marked events.

Fix for issue #2226.