From 6ed368446ee48c546398aa790388e51eabc24650 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 29 Nov 2012 11:54:29 -0500 Subject: [PATCH] Don't use :hover, only redraw new ways, etc --- css/app.css | 18 ++++++------------ index.html | 4 ++++ js/id/renderer/map.js | 3 ++- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/css/app.css b/css/app.css index cd1e48ca5..26741c115 100644 --- a/css/app.css +++ b/css/app.css @@ -62,10 +62,6 @@ button.delete { background:#DD5757; } -button:hover { - background:#000; -} - button small { display: inline-block; font-weight: normal; @@ -156,10 +152,6 @@ input#geocode-location { cursor:auto; } -#bar button:hover:not([disabled]) { - background:#eee; -} - #bar button.active:not([disabled]) { background:#eee; color:#000; @@ -173,10 +165,6 @@ input#geocode-location { color:#fff; } -#bar button.save:hover { - background:#000; -} - #bar button.mini, #bar button.mini { width:auto; @@ -306,3 +294,9 @@ input#geocode-location { max-height:250px; overflow:scroll; } + +/* mobile tweaks */ +* { + -webkit-tap-highlight-color:rgba(0,0,0,0); + -webkit-touch-callout:none; +} diff --git a/index.html b/index.html index 2fe8e7db4..ba5386c81 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,11 @@ + + + + diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 20f3050e0..42c9bc0a0 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -342,13 +342,14 @@ iD.Map = function(elem, connection) { return coords.filter(tileAlreadyLoaded).map(apiExtentBox); } + function apiRequestExtent(extent) { connection.bboxFromAPI(extent, function (result) { if (result instanceof Error) { // TODO: handle } else { map.history.merge(result); - drawVector(); + drawVector(iD.Util.trueObj(Object.keys(result.entities))); } }); }