@leonsilicon/react-native-wishlist 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -217,8 +217,8 @@ void MGViewportCarerImpl::updateWindow() {
|
|
|
217
217
|
|
|
218
218
|
std::vector<WishItem> itemsToRemove;
|
|
219
219
|
|
|
220
|
-
// remove above
|
|
221
|
-
while (
|
|
220
|
+
// remove above — keep at least one item so window_ is never empty
|
|
221
|
+
while (window_.size() > 1) {
|
|
222
222
|
WishItem item = window_.front();
|
|
223
223
|
float bottom = item.offset + item.height;
|
|
224
224
|
if (bottom <= topEdge) {
|
|
@@ -231,8 +231,8 @@ void MGViewportCarerImpl::updateWindow() {
|
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
// remove below
|
|
235
|
-
while (
|
|
234
|
+
// remove below — keep at least one item so window_ is never empty
|
|
235
|
+
while (window_.size() > 1) {
|
|
236
236
|
WishItem item = window_.back();
|
|
237
237
|
if (item.offset >= bottomEdge) {
|
|
238
238
|
window_.pop_back();
|
package/package.json
CHANGED