mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 13:59:27 +02:00
Revert "Don't use :active pseudo-class"
Now seeing this cause poor pan performance.
This reverts commit 9fafd6b56a.
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user