CanvasTileLayer: Scroll to part when needed.
For file based view. Signed-off-by: Gökay Şatır <gokay.satir@collabora.com> Change-Id: I4902090ccf96dc834d8792c1637dd1a8833cc20f
This commit is contained in:
parent
e6ea17e1a0
commit
eaf3772489
1 changed files with 5 additions and 2 deletions
|
@ -5509,8 +5509,11 @@ L.CanvasTileLayer = L.Layer.extend({
|
|||
this._sortFileBasedQueue(queue);
|
||||
|
||||
if (queue.length > 0) {
|
||||
this._selectedPart = this._getMostVisiblePart(queue);
|
||||
this._preview._scrollToPart();
|
||||
var partToSelect = this._getMostVisiblePart(queue);
|
||||
if (this._selectedPart !== partToSelect) {
|
||||
this._selectedPart = partToSelect;
|
||||
this._preview._scrollToPart();
|
||||
}
|
||||
}
|
||||
|
||||
if (checkOnly) {
|
||||
|
|
Loading…
Reference in a new issue