Fix touch event propagation

Fix a bug where the chosen element immediately closes again after opening it with a touch event, because both the touch and mouse events get triggered the first time.