Browse Source

Bad call to getHiddenDurationBetween

Bug in Range.js call to DateUtil.getHiddenDurationBetween. It was passing in this.options.moment which is not expected by getHiddenDurationBetween.
webworkersNetwork
Jacob Lauzier 9 years ago
parent
commit
d968da74ef
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