0👍
whenever you tap your screen , a click event will be executed. you have called same method twice using different events.
What you should do is determine if the input is a touch or a click event using javascript which has been answered here
Source:stackexchange.com