Priority: P2: Important
Affects Version/s: 5.15.0
Fix Version/s: None
Component/s: Quick: Core Declarative QML
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.
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.