You found a bug! We've classified it as TOUCH-5328 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2013
    Location
    Area Alsace, France
    Posts
    9
    Vote Rating
    0
    pincher is on a distinguished road

      0  

    Default Ext.Menu swipe does not work, even in kitchen sink

    Ext.Menu swipe does not work, even in kitchen sink


    We are using touch 2.3.1 and tried to implement the Ex.Menu.

    Not with your example kitchen sink nor using the Ext.Menu in our application the swipe (from whatever edge) works, toggleMenu has no problem. Tried on iPad (iOS7, latest version Safari/Chrome), OSX-Mavericks (latest version Safari/Chrome)

    The errors shown on the console in all cases (Kitchen sink iPad, desktop) are:

    - TypeError: 'undefined' is not an object (evaluating 'this.getTranslatable().on')
    >>> Ext.viewport.Default#onEdgeSwipeEnd
    Code:
    ...
    if (menu.$cover) {
                menu.getTranslatable().on('animationend', function() {
                    if (shouldRevert) {
                        menu.hide();
                    }
                }, this, {
                    single: true
                });
    
    
                menu.translate(after.translateX, after.translateY, {
                    preserveEndState: true,
                    duration: 200
                });
    
    
            }
            else {
                this.getTranslatable().on('animationend', function() {
                    if (shouldRevert) {
                        menu.hide();
                    }
                }, this, {
                    single: true
                });
    
    
                this.translate(viewportAfter.translateX, viewportAfter.translateY, {
                    preserveEndState: true,
                    duration: 200
                });
            }
    and
    - TypeError: 'null' is not an object (evaluating 'point.x')
    >>> Ext.util.Point#getDistanceTo

  2. #2
    Sencha - Senior Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    38,044
    Vote Rating
    992
    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.

  3. #3
    Sencha User
    Join Date
    Jul 2008
    Posts
    7
    Vote Rating
    26
    lanbo will become famous soon enough lanbo will become famous soon enough

      0  

    Default


    I'm also experiencing the same bug. It's strange after so many months the bug is still around. No one uses Ext.Menu component? I thought this one would be extremely popular but there are not many complaints though.
    Any plans to fix it or any workaround? Thanks!

  4. #4
    Sencha User
    Join Date
    Nov 2013
    Posts
    5
    Vote Rating
    0
    vitalii.blagodir is on a distinguished road

      0  

    Default


    My workaround for Sencha Touch 2.4.1 is to replace in touch\src\viewport\Default.js line 1043
    Code:
    if (checkMenu.isHidden() !== false) {
    with
    Code:
    if (checkMenu.isHidden() == false) {
    See also here
    http://stackoverflow.com/questions/2...93950#29093950

  5. #5
    Sencha Premium Member Tarabass's Avatar
    Join Date
    Jun 2010
    Location
    The Netherlands
    Posts
    25
    Vote Rating
    0
    Tarabass is on a distinguished road

      0  

    Default


    That would be

    Code:
    if (checkMenu.isHidden() === false) {
    don't you think