From: Robert Kaiser <kairo@kairo.at>
Date: Tue, 11 Sep 2012 15:25:00 +0000 (+0200)
Subject: add a note on where the slow drawing on tablet sends slow script warnings
X-Git-Tag: legacy-preGL~68
X-Git-Url: https://git-public.kairo.at//?a=commitdiff_plain;h=0118cbd3293b6d9da865d3d520d475cc07b8f93e;p=lantea.git

add a note on where the slow drawing on tablet sends slow script warnings
---

diff --git a/js/map.js b/js/map.js
index 5709a56..5cd194e 100644
--- a/js/map.js
+++ b/js/map.js
@@ -262,7 +262,7 @@ function drawMap() {
   // Go through all the tiles we want.
   // If any of them aren't loaded or being loaded, do so.
   for (var x = Math.floor(xMin / size); x < Math.ceil(xMax / size); x++) {
-    for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) {
+    for (var y = Math.floor(yMin / size); y < Math.ceil(yMax / size); y++) { // slow script warnings on the tablet appear here!
       var xoff = (x * size - xMin) / gZoomFactor;
       var yoff = (y * size - yMin) / gZoomFactor;
       var tileKey = encodeIndex(x, y, gPos.z);