Changeset d644656 in subsurface


Ignore:
Timestamp:
Jun 29, 2017, 7:21:55 AM (4 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
81362e64
Parents:
b459ccb
git-author:
Jan Mulder <jlmulder@…> (06/28/17 10:55:19)
git-committer:
Dirk Hohndel <dirk@…> (06/29/17 07:21:55)
Message:

QML UI: only drag a pull down sync, and not flick it

Fast flicking to the top of the divelist triggers almost certainly a
pull down sync, as the default boundBehavior is DragAndOvershootBounds?.
Despite being the default QML action, this leads to unwanted pull
down syncs (even in offline mode).

Setting the boundBehavior to DragOverBounds? solves this issue. Now,
the user has to explicitly drag the top down to force a pull down
sync, and a accidental fast flick is stopped at the upper bound.

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/DiveList.qml

    rb459ccb rd644656  
    314314                currentIndex: -1
    315315                delegate: diveDelegate
    316                 //boundsBehavior: Flickable.StopAtBounds
     316                boundsBehavior: Flickable.DragOverBounds
    317317                maximumFlickVelocity: parent.height * 5
    318318                bottomMargin: Kirigami.Units.iconSizes.medium + Kirigami.Units.gridUnit
Note: See TracChangeset for help on using the changeset viewer.