@lightningjs/ui
Advanced tools
Comparing version 1.3.17 to 1.3.18
@@ -5,3 +5,3 @@ # Changelog | ||
## v1.3.17 | ||
## v1.3.17 / v1.3.18 | ||
-This fixes an issue that when you use setIndex when the component is inactive and when _cleanUp from Carousel is called, it clears all the items because the scrollTransition.targetValue is not updated. | ||
@@ -8,0 +8,0 @@ |
{ | ||
"name": "@lightningjs/ui", | ||
"version": "1.3.17", | ||
"version": "1.3.18", | ||
"description": "Standard UI components for Lightning", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -286,3 +286,3 @@ /* | ||
const viewboundMain = directionIsRow ? 1920 : 1080; | ||
const offset = this._scrollTransition && this._scrollTransition.targetValue || 0; | ||
const offset = this.wrapper[main]; | ||
@@ -289,0 +289,0 @@ const boundStart = -viewboundMain * 0.66; |
@@ -406,3 +406,6 @@ /* | ||
else if (!isNaN(scroll)) { | ||
this.wrapper[main] = scroll | ||
this.wrapper[main] = scroll; | ||
if (this._scrollTransition) { | ||
this._scrollTransition.reset(scroll, 1); | ||
} | ||
} | ||
@@ -409,0 +412,0 @@ } |
221533
3211