when it's touch, don't' click too

The usage of `event.preventDefault()` should avoid the triggering of the `click` event later, ensuring that `closeMenu` is called once instead of twice when `touch` (or `pointerdown`) is performed instead of click.