You found a bug! We've classified it as TOUCH-4529 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User MrNickBarker's Avatar
    Join Date
    Apr 2013
    Posts
    19
    Vote Rating
    0
    MrNickBarker is on a distinguished road

      0  

    Default flip animation 'right' direction is same as 'left'

    flip animation 'right' direction is same as 'left'


    Ext version tested:
    • Sencha Touch 2.2.1
    Browser versions tested against:
    • Chrome (Mac)
    Description:
    • Flip animation 'right' direction is same as 'left'.
    Steps to reproduce the problem:
    • Use {type:'flip', direction:'right'}
    The result that was expected:
    • View flips to right
    The result that occurs instead:
    • View flips to left
    Possible fix:
    In 'fx/animation/Flip.js' change

    Code:
    case this.DIRECTION_RIGHT:
    if (out) {
          toRotateY = -rotate;
    }
    else {
          fromRotateY = rotate;
    }
    break;
    to
    Code:
    case this.DIRECTION_RIGHT:
    if (out) {
         toRotateY = rotate;
    }
    else {
         fromRotateY = -rotate;
    }
    break;
    test
    Code:
    Ext.Viewport.add({
        layout : {
            type      : 'card',
            animation : {
                type      : 'flip',
                direction : 'right',
                duration  : 2000
            }
        },
        items  : [
            {
                items : [
                    {
                        xtype   : 'button',
                        text    : 'Next',
                        handler : function(button) {
                            var container = Ext.Viewport.child('container');
    
                            container.setActiveItem(1);
                        }
                    }
                ]
            },
            {
                items : [
                    {
                        xtype   : 'button',
                        text    : 'Back',
                        handler : function(button) {
                            var container = Ext.Viewport.child('container');
    
                            container.setActiveItem(0);
                        }
                    }
                ]
            }
        ]
    });
    Last edited by mitchellsimoens; 28 May 2013 at 5:24 AM. Reason: added test

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,620
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

Tags for this Thread