Skip to content

Commit

Permalink
Touch: make the knob align correctly
Browse files Browse the repository at this point in the history
Make the knob align correctly on touch devices. Please test.
  • Loading branch information
mattiasb committed Oct 31, 2013
1 parent 36de01b commit 6a21866
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/touch.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<![endif]-->
</head>
<body>
<div id="map"></div>
<div id="map" class="leaflet-touch"></div>
<script src="lib/Leaflet/dist/leaflet-src.js"></script>
<script src="../src/L.Control.Zoomslider.js" ></script>
<script src="lib/leaflet-tilejson/src/tilejson.js"></script>
Expand Down
12 changes: 7 additions & 5 deletions src/L.Control.Zoomslider.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,16 @@
background-position: 10px 0px;
}
.leaflet-touch .leaflet-control-zoomslider-knob {
width:16px;
margin-left: -1px;
width: 16px;
margin-left: -7px;
}
.leaflet-touch .leaflet-control-zoomslider a {
width: 30px;
height: 30px;
line-height: 30px;
}
.leaflet-touch .leaflet-control-zoomslider a:hover {
width: 30px;
line-height: 30px;
}
.leaflet-touch .leaflet-control-zoomslider-in {
font-size: 24px;
Expand All @@ -97,7 +101,5 @@
}
.leaflet-touch .leaflet-control-zoomslider {
box-shadow: none;
}
.leaflet-touch .leaflet-control-zoomslider {
border: 4px solid rgba(0,0,0,0.3);
}

0 comments on commit 6a21866

Please sign in to comment.