Code review comment for lp:~vthompson/ubuntu-calendar-app/fix-1276788

Revision history for this message
Kunal Parmar (pkunal-parmar) wrote :

> From documentation of PathView.snapMode property
>
> PathView.SnapOneItem - the items settle no more than one item away from the
> item nearest preferredHighlightBegin at the time the press is released. This
> mode is particularly useful for moving one page at a time.
>
> Use it, please. You can find example of usage (of similar property in
> ListView) in Shorts.

Hi roman,
If we see full code of PathViewBase.qml, pathview is already using snapOneItem. Do you think we are missing anything else ?

PathView {
    id: root

    model: 3
    snapMode: PathView.SnapOneItem

 ...

    preferredHighlightBegin: 0.5
    preferredHighlightEnd: 0.5

« Back to merge proposal