File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -673,12 +673,12 @@ OpenLayers.Events = OpenLayers.Class({
673
673
for ( var i = 0 , len = this . BROWSER_EVENTS . length ; i < len ; i ++ ) {
674
674
type = this . BROWSER_EVENTS [ i ] ;
675
675
// register the event cross-browser
676
- OpenLayers . Event . observe ( element , type , this . eventHandler
677
- ) ;
678
676
if ( ( touchModel === this . TOUCH_MODEL_POINTER ||
679
677
touchModel === this . TOUCH_MODEL_MSPOINTER ) &&
680
678
type . indexOf ( 'touch' ) === 0 ) {
681
679
this . addPointerTouchListener ( element , type , this . eventHandler ) ;
680
+ } else {
681
+ OpenLayers . Event . observe ( element , type , this . eventHandler ) ;
682
682
}
683
683
}
684
684
// disable dragstart in IE so that mousedown/move/up works normally
Original file line number Diff line number Diff line change @@ -3,11 +3,12 @@ div.olMap {
3
3
padding : 0 !important ;
4
4
margin : 0 !important ;
5
5
cursor : default;
6
+ -ms-touch-action : none;
7
+ touch-action : none;
6
8
}
7
9
8
10
div .olMapViewport {
9
11
text-align : left;
10
- -ms-touch-action : none;
11
12
}
12
13
13
14
div .olLayerDiv {
You can’t perform that action at this time.
0 commit comments