tui-calendar
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "TOAST UI Calendar", | ||
@@ -14,0 +14,0 @@ "ignore": [ |
{ | ||
"name": "tui-calendar", | ||
"author": "NHNEnt FE Development Lab <dl_javascript@nhnent.com>", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"main": "dist/tui-calendar.js", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -291,2 +291,9 @@ /** | ||
/** | ||
* It's true if Calendar.prototype.scrollToNow() is called. | ||
* @type {boolean} | ||
* @private | ||
*/ | ||
this._requestScrollToNow = false; | ||
/** | ||
* Open schedule creation popup | ||
@@ -622,3 +629,7 @@ * @type {function} | ||
} | ||
if (this._scrollToNowMethod && this._requestScrollToNow) { | ||
this._scrollToNowMethod(); | ||
} | ||
this._requestScrollToNow = false; | ||
this._requestRender = null; | ||
@@ -657,3 +668,4 @@ }; | ||
if (this._scrollToNowMethod) { | ||
this._scrollToNowMethod(); | ||
this._requestScrollToNow = true; | ||
// this._scrollToNowMethod() will be called at next frame rendering. | ||
} | ||
@@ -660,0 +672,0 @@ }; |
@@ -484,4 +484,3 @@ /** | ||
TimeGrid.prototype.scrollToNow = function() { | ||
var self = this, | ||
container = this.container; | ||
var container = this.container; | ||
var offsetTop, | ||
@@ -494,3 +493,3 @@ viewBound, | ||
if (!self.hourmarkers) { | ||
if (!this.hourmarkers || !this.hourmarkers.length) { | ||
return; | ||
@@ -497,0 +496,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5101578
38331