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:
@@ -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