@lightningjs/ui
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@lightningjs/ui", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Standard UI components for Lightning", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -78,3 +78,4 @@ import { CollectionWrapper, ItemWrapper} from "./helpers"; | ||
index = itemIndex > 0 ? itemIndex - 1 : items.length - 1; | ||
while(-(scrollOffsetStart + this._tresholdStart) < position) { | ||
let lastWidth = 0; | ||
while(-(scrollOffsetStart + this._tresholdStart) < position + lastWidth) { | ||
const item = items[index]; | ||
@@ -97,3 +98,3 @@ const sizes = this._getItemSizes(item); | ||
}); | ||
lastWidth = sizes[mainDim]; | ||
position -= (sizes[mainMarginFrom] || sizes.margin); | ||
@@ -100,0 +101,0 @@ index = this._normalizeDataIndex(index - 1, items); |
@@ -221,3 +221,3 @@ | ||
let scroll = this.scroll; | ||
let scroll = this._scroll; | ||
@@ -224,0 +224,0 @@ if(!isNaN(scroll)) { |
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
81193
1032