Since we now can have delayed map rendering, take care to only apply attributes to the map viewport element (map.div may change). Some deprecated controls still modify style properties of map.div. If you use a combination of deprecated controls and delayed rendering, you may get unexpected results. r=ahocevar (closes #1901)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9259 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
1 parent
1fd32e0ff8
commit
736b3ff08c
3 files changed
+6
-1
No files matched your search
@@ -129,7 +129,7 @@ OpenLayers.Control.Navigation = OpenLayers.Class(OpenLayers.Control, {
|
||||
draw: function() {
|
||||
// disable right mouse context menu for support of right click events
|
||||
if (this.handleRightClicks) {
|
||||
this.map.div.oncontextmenu = function () { return false;};
|
||||
this.map.viewPortDiv.oncontextmenu = function () { return false;};
|
||||
}
|
||||
|
||||
var clickCallbacks = {
|
||||
|
||||
Reference in new issue
Block a user