arnef / coronaapp

Corona App for Ubuntu Touch
Other
7 stars 9 forks source link

fix broken snapMode by adding highlightrange to update current index #10

Closed Danfro closed 3 years ago

Danfro commented 3 years ago

Currently the list view does not snap to a certain element. This is only relevant for more than two codes, but nevertheless then not good for usability.

According to the doc, snapMode only works with the current index being updated. This can be done by setting highlightRangeMode to ListView.StrictlyEnforceRange.

This PR will add this property fixing the snapMode.