Attempt to handle IE >= 10 pointer events
Using the same technique as Leaflet, this relays MSPointer events to touch events. Using the simulator, I can verify that even pinch-zoom works with this change, but the visual experience is a bit jumpy. Would be great if people could test this on physical touch devices and see how it looks/feels there.
This commit is contained in:
@@ -7,6 +7,7 @@ div.olMap {
|
||||
|
||||
div.olMapViewport {
|
||||
text-align: left;
|
||||
-ms-touch-action: none;
|
||||
}
|
||||
|
||||
div.olLayerDiv {
|
||||
|
||||
@@ -43,6 +43,9 @@ div.olControlZoom a:hover {
|
||||
background: rgba(0, 60, 136, 0.5);
|
||||
}
|
||||
}
|
||||
div.olMapViewport {
|
||||
-ms-touch-action: none;
|
||||
}
|
||||
.olLayerGrid .olTileImage {
|
||||
-webkit-transition: opacity 0.2s linear;
|
||||
-moz-transition: opacity 0.2s linear;
|
||||
|
||||
Reference in New Issue
Block a user