QskStackBoxAnimator for stack boxes with 2 items
uwerat opened this issue · comments
QskStackBoxAnimator1 can't make a proper decision about the direction of the animation for boxes with only 2 items.
F.e when using horizontal pan gestures ( f.e. in a swipe view ) you initiate transitions between the indexes 0->1 or 1->0 regardless of a gesture from left->right or right->left.
As the API of QskStackBox does not know about the specific type of animated transition we have to extend the API of the base class QskStackBoxAnimator with something like Forwards/Backwards.
Fixed: QskStackBoxAnimator1::setOrientation has been replaced by QskStackBoxAnimator1::setDirection.