Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Aug 2010
    Location
    Sweden, Västerås
    Posts
    85
    Vote Rating
    0
    Kask is on a distinguished road

      0  

    Default [FIXED-242] Pinch gesture is interpreted as swipe

    [FIXED-242] Pinch gesture is interpreted as swipe


    Sencha Touch version tested:
    • 0.9 rev 3
    • only default ext-all.css

    Platform tested against:

    • iOS 3.x
    • iOS 4

    Description:

    If you are doing a rather small pinch, but still a two-finger pinch, it can be interpreted as a swipe and rise that event instead of the pinch event. Might have to do with the plastic film on my iPad, but its still an issue.

    Test Case:

    Code:
        Ext.ux.TouchPad = Ext.extend(Ext.Component, {
        id: 'touchpad',
        html: 'Touch here!',
        fullscreen: true,
        initComponent : function() {
            Ext.ux.TouchPad.superclass.initComponent.call(this);
        },
        
        afterRender: function() {
            Ext.ux.TouchPad.superclass.afterRender.call(this);
            
            this.mon(this.el, {
                swipe: this.handleEvent,
                pinch: this.handleEvent,
            });
        },
    
        handleEvent: function(e) {
            console.log(e.type);
        }
    });
    
    
    Ext.setup({
        glossOnIcon: false,
        onReady: function () {
    
            new Ext.Panel({
                fullscreen: true,
                title: 'Swipe/Pinch test',
                items: new Ext.ux.TouchPad()
            });
        }
    });
    Steps to reproduce the problem:
    • Do a small two-finger pinch.
    • Check console log.

    The result that was expected:

    • Pinch event would rise.

    The result that occurs instead:
    • Sometimes the swipe event is raised instead.

    Debugging already done:

    • none

    Possible fix:
    • Change the if-case that determines if check for swipe is to be done, and include that no check should be done if its multiTouch.
    • Line 4674 in ext-touch-debug-w-comments.js
    • Code:
      if (!track.scrolling && track.events.swipe && !me.multiTouch)

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    This has been fixed in the new gesture system that will be part of the next release.

Similar Threads

  1. general question: using pinch gesture to scale div/class.
    By nosarious in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 12 Jan 2011, 6:24 PM
  2. Firing a scroll gesture from a button tap
    By DaveC426913 in forum Sencha Touch 1.x: Discussion
    Replies: 8
    Last Post: 2 Sep 2010, 11:46 AM
  3. Ext Core - an empty gesture?
    By tercero12 in forum Ext: Q&A
    Replies: 9
    Last Post: 9 Jul 2010, 5:59 AM
  4. Replies: 3
    Last Post: 11 Sep 2009, 12:58 AM
  5. [CLOSED] [2.0.1] NullPointerException at Desktop.java:242
    By Arno.Nyhm in forum Ext GWT: Bugs (2.x)
    Replies: 5
    Last Post: 29 Jul 2009, 8:14 AM

Thread Participants: 2