Use Date.now() instead of goog.now()

This commit is contained in:
Marc Jansen
2015-09-28 15:23:36 +02:00
parent 6c5775e6f6
commit 2ed3f28ab8
3 changed files with 8 additions and 8 deletions
@@ -91,11 +91,11 @@ ol.interaction.MouseWheelZoom.handleEvent = function(mapBrowserEvent) {
this.delta_ += mouseWheelEvent.deltaY;
if (this.startTime_ === undefined) {
this.startTime_ = goog.now();
this.startTime_ = Date.now();
}
var duration = ol.MOUSEWHEELZOOM_TIMEOUT_DURATION;
var timeLeft = Math.max(duration - (goog.now() - this.startTime_), 0);
var timeLeft = Math.max(duration - (Date.now() - this.startTime_), 0);
goog.global.clearTimeout(this.timeoutId_);
this.timeoutId_ = goog.global.setTimeout(