Fix behavior for touch PCs that have a mouse

Possible solution to issue #1.

It adds an additional event listener for touchend events and an intermediate function call that guarantees an event listener to be called only once, whether it is called by a `'click'` event or `'touchend'`.