Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.15.0
-
None
Description
steps to reproduce:
1) create model containing 67 items (or 61)
2) set preferredHighlightBegin = 0, preferredHighlightBegin =0
3) set highlightMoveDuration = 0
3) set pathItemCount = 7
4) use decrementCurrentIndex to scroll
Code based on pathview-example.qml from distrib is attached.
Draft analysis:
errors in operations with floating point numbers in positionOfIndex. Item's position must be >= 1 when item has left the path. But because of using qreal result of positionOfIndex is 0.9999...
So the condition in refill() "if (pos < 1)" failures which causes the bug.