Ok, this is now addressed in e91367f.


On 29 January 2013 18:28, Tom Payne <notifications@github.com> wrote:

> In src/ol/kinetic.js:
>
> > + */
> > +ol.Kinetic.prototype.update = function(browserEvent) {
> > +  this.points_.push({
> > +    x: browserEvent.clientX,
> > +    y: browserEvent.clientY,
> > +    t: goog.now()
> > +  });
> > +};
> > +
> > +
> > +/**
> > + * @return {boolean} Whether we should do kinetic animation.
> > + */
> > +ol.Kinetic.prototype.end = function() {
> > +  var now = goog.now();
> > +  var index = Math.abs(goog.array.binarySelect(this.points_, function(elt) {
>
> It's likely to be faster in this case because:
>
>    - the item we are looking for is likely to be near the end of the
>    array, so we can start from the end and work back
>    - using a for loop means that we don't have to create a closure
>
>  —
> Reply to this email directly or view it on GitHub<https://github.com/openlayers/ol3/pull/164/files#r2812133>.
>
>