I found now a solution to remove this strange (but likely intended)
behaviour. In case some is interested:
The deactivation of the mouse wheel for all other controls in the panel
is caused by the deactivation in the Navigation.js -> deactivate()
function. If one removes/comments out there the line
this.handlers.wheel.deactivate();
the mouse wheel function is available also for the other panel tools. If
one wants to keep also the drag/pan function (useful for example for a
map identify tool), one can also remove or comment out the line
this.dragPan.deactivate();
I put everything outside in a function to overwrite the standard
Navigation behaviour, like
OpenLayers.Control.Navigation.prototype.deactivate = function() {
if (this.pinchZoom) {
this.pinchZoom.deactivate();
}
this.zoomBox.deactivate();
//this.dragPan.deactivate();
this.handlers.click.deactivate();
//this.handlers.wheel.deactivate();
return OpenLayers.Control.prototype.deactivate.apply(this,arguments);
}
So far at least I have not noticed negative side effects of this
modification.
armin
On 04/03/2012 18:59, Armin Burger wrote:
Hi everybody
I noticed that if I replace in the panel control the "MouseDefaults"
control with the "Navigation" control then the default mouse operation
for the mouse wheel (zoom in/out) is deactivated if any other tool than
the Navigation (e.g. the zoom control) is active.
If I switch back to using MouseDefaults instead, then everything is fine
(but this control is marked as deprecated...). One can easily see this
behaviour with the "panel.html" from the "examples" directory. Is this
deactivated mouse wheel zoom an intended behaviour? I have not found any
setting that would avoid this.
Thx in advance for any help
Armin
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users