From 5af3844e12f4d593cca50d8a3cdcc842a3ffb0cf Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 6 Jul 2014 13:51:48 -0400 Subject: Don't double-tap targets --- _layouts/master.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '_layouts/master.html') diff --git a/_layouts/master.html b/_layouts/master.html index f1789a4..df9f165 100644 --- a/_layouts/master.html +++ b/_layouts/master.html @@ -135,7 +135,9 @@ var es = document.getElementsByTagName('a'); for (var i = 0; i < es.length; i++) { es[i].addEventListener('touchstart', function() { - window.location.href = this.href; + if (this.href !== window.location.href) { + window.location.href = this.href; + } }); } } -- cgit v1.2.3