Revert "Don't use :active pseudo-class"

Now seeing this cause poor pan performance.

This reverts commit 9fafd6b56a.
This commit is contained in:
John Firebaugh
2013-05-13 14:16:14 -07:00
parent ba08ba6109
commit 16e05fd657
2 changed files with 1 additions and 9 deletions
+1 -1
View File
@@ -888,7 +888,7 @@ text.point {
) 9 9, auto;
}
#map.panning {
#map:active {
cursor: pointer; /* Opera */
cursor: url(img/cursor-grabbing.png) 9 9, auto; /* FF */
cursor: -webkit-image-set(
-8
View File
@@ -191,12 +191,6 @@ iD.Map = function(context) {
transformed = true;
supersurface.style(transformProp, transform);
if (tX || tY) {
context.container().selectAll('#map')
.classed('panning', true);
}
queueRedraw();
dispatch.move(map);
@@ -205,8 +199,6 @@ iD.Map = function(context) {
function resetTransform() {
if (!transformed) return false;
supersurface.style(transformProp, '');
context.container().selectAll('#map')
.classed('panning', false);
transformed = false;
return true;
}