From c6ad20992dddb05b5a76d335bd7008d2d96f72a6 Mon Sep 17 00:00:00 2001
From: samhed <samuel@cendio.se>
Date: Thu, 11 Jul 2013 12:37:01 +0200
Subject: [PATCH] Improved comments

---
 include/input.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/include/input.js b/include/input.js
index dd16fa5..efd865a 100644
--- a/include/input.js
+++ b/include/input.js
@@ -548,17 +548,16 @@ function onMouseButton(e, down) {
             } else {
                 clearTimeout(doubleClickTimer); 
 
-                // When the distance between the two touches is less than
-                // 20 physical pixels force the position of the latter touch 
-                // to the position of the first.
+                // When the distance between the two touches is small enough
+                // force the position of the latter touch to the position of
+                // the first.
 
                 var xs = lastTouchPos.x - pos.x;
                 var ys = lastTouchPos.y - pos.y;
                 var d = Math.sqrt((xs * xs) + (ys * ys));
 
-                // The devicePixelRatio is the ratio between logical pixels and
-                // physical pixels. A devicePixelRatio of 2 means that the
-                // physical linear resolution is double the logical resolution.
+                // The goal is to trigger on a certain physical width, the
+                // devicePixelRatio brings us a bit closer but is not optimal.
                 if (d < 20 * window.devicePixelRatio) {
                     pos = lastTouchPos;
                 }
-- 
2.18.1