[OpenLayers-Users] Mouse wheel scroll limitation in OpenLayers 3

Bart van den Eijnden bartvde at boundlessgeo.com
Thu Mar 5 23:30:02 PST 2015


See: https://github.com/openlayers/ol3#questions <https://github.com/openlayers/ol3#questions> for instructions on where to ask OpenLayers 3 questions.

Best regards,
Bart

Bart van den Eijnden
Front End Software Engineer | Boundless <http://boundlessgeo.com/>
bartvde at boundlessgeo.com <mailto:bartvde at boundlessgeo.com>
1-877-673-6436 <tel:917-460-7207>
@boundlessgeo <http://twitter.com/boundlessgeo/>

 <http://boundlessgeo.com/>

> On 05 Mar 2015, at 22:36, agelos at smartcode.gr wrote:
> 
> Hi list,
> 
> I know that the OpenLayers 3 ol.interaction.MouseWheelZoom accumulates
> mouse wheel events for an amount of time before it actually fires the
> event, which is a wanted behavior. However it seems that it limits the
> maximum zoom step to a constant range. I came to this conclusion by
> inspecting the function
> 
> "ol.interaction.MouseWheelZoom.prototype.doZoom_"
> 
> and specifically the lines:
> var maxDelta = ol.MOUSEWHEELZOOM_MAXDELTA;
> var delta = goog.math.clamp(this.delta_, -maxDelta, maxDelta);
> 
> of the ol.interaction.MouseWheelZoom source found at:
> https://github.com/openlayers/ol3/blob/master/src/ol/interaction/mousewheelzoominteraction.js
> 
> In my application this is an unwanted feature, as the user needs to be
> able to zoom as much and as quickly as possible. Is there a way to
> overcome this limitation e.g. by building a custom interaction or altering
> my map configuration somehow?
> 
> Regards
> Agelos
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150306/05e6def5/attachment.html>


More information about the Users mailing list