@egjs/flicking
Advanced tools
Comparing version 4.11.5-beta.3 to 4.11.5-beta.4
@@ -15,3 +15,2 @@ import Flicking, { FlickingOptions } from "../Flicking"; | ||
private _transform; | ||
private _lookedOffset; | ||
private _position; | ||
@@ -18,0 +17,0 @@ private _alignPos; |
{ | ||
"name": "@egjs/flicking", | ||
"version": "4.11.5-beta.3", | ||
"version": "4.11.5-beta.4", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/flicking.cjs.js", |
@@ -35,3 +35,2 @@ /* | ||
private _transform: string; | ||
private _lookedOffset = 0; | ||
private _position: number; | ||
@@ -297,4 +296,2 @@ private _alignPos: number; | ||
public lookAt(pos: number): void { | ||
const prevOffset = this._offset; | ||
const isChangedOffset = this._lookedOffset !== prevOffset; | ||
const flicking = getFlickingAttached(this._flicking); | ||
@@ -309,11 +306,6 @@ const prevPos = this._position; | ||
if (isChangedOffset || toggled) { | ||
if (toggled) { | ||
void flicking.renderer.render().then(() => { | ||
this.updateOffset(); | ||
this._lookedOffset = this._offset; | ||
}); | ||
} else if (isChangedOffset) { | ||
// sync offset for renderOnlyVisible on resize | ||
this.updateOffset(); | ||
this._lookedOffset = this._offset; | ||
} else { | ||
@@ -613,3 +605,2 @@ this.applyTransform(); | ||
this._position = 0; | ||
this._lookedOffset = 0; | ||
this._alignPos = 0; | ||
@@ -616,0 +607,0 @@ this._offset = 0; |
@@ -84,3 +84,3 @@ import { DiffResult } from "@egjs/list-differ"; | ||
if (startIdx >= 0) { | ||
added.push(...batchInsert(renderer, diffResult, addedElements, startIdx)); | ||
added.push(...batchInsert(renderer, diffResult, addedElements.slice(startIdx), startIdx)); | ||
} | ||
@@ -87,0 +87,0 @@ } |
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 too big to display
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 too big to display
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 too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5061164
143
47622