Browse Source

Merge pull request #1325 from machinemetrics/master

Bad call to getHiddenDurationBetween
webworkersNetwork
Jos de Jong 9 years ago
parent
commit
440065e4a0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      lib/timeline/Range.js

+ 1
- 1
lib/timeline/Range.js View File

@ -551,7 +551,7 @@ Range.prototype._onPinch = function (event) {
var scale = 1 / (event.scale + this.scaleOffset);
var centerDate = this._pointerToDate(this.props.touch.center);
var hiddenDuration = DateUtil.getHiddenDurationBetween(this.options.moment, this.body.hiddenDates, this.start, this.end);
var hiddenDuration = DateUtil.getHiddenDurationBetween(this.body.hiddenDates, this.start, this.end);
var hiddenDurationBefore = DateUtil.getHiddenDurationBefore(this.options.moment, this.body.hiddenDates, this, centerDate);
var hiddenDurationAfter = hiddenDuration - hiddenDurationBefore;

Loading…
Cancel
Save