Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #21
    Sencha User
    Join Date
    Jan 2012
    Location
    London, UK
    Posts
    498
    Vote Rating
    51
    shepsii has a spectacular aura about shepsii has a spectacular aura about shepsii has a spectacular aura about

      0  

    Default


    Thanks Jamie, really appreciate the update. A big reason to prioritize going to 2.2!
    I blog about Sencha Touch at www.senchatouchdev.com

  2. #22
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    95
    Vote Rating
    3
    grizzly21 is on a distinguished road

      0  

    Default


    How can I apply this throughout the entire application?

  3. #23
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    322
    Vote Rating
    4
    Scorpie is on a distinguished road

      0  

    Default


    Upgrade to 2.2
    I`m from Holland!

  4. #24
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    95
    Vote Rating
    3
    grizzly21 is on a distinguished road

      0  

    Default


    Yeah I did that, but what I want is to modify this moveDistance to be even bigger ( I don't think it's big enough) according to this:
    "This is being addressed in 2.2 by having a moveDistance configuration in the Tap recognizer. The current RC has this set to a value of 4 pixels which seems to be a bit too sensitive so we will set the default a bit higher. You can always set this to your own preference."

    Tried this but didn't seem to have any effect:
    Ext.override(Ext.event.recognizer.Tap, {
    config: {
    moveDistance: 33
    }
    });

    Quote Originally Posted by Scorpie View Post
    Upgrade to 2.2

  5. #25
    Sencha User
    Join Date
    Apr 2013
    Posts
    4
    Vote Rating
    0
    mpavlis is on a distinguished road

      0  

    Default using 2.2 still running into the issue

    using 2.2 still running into the issue


    just a described above but using 2.2.

  6. #26
    Sencha Premium Member
    Join Date
    Jul 2012
    Posts
    95
    Vote Rating
    3
    grizzly21 is on a distinguished road

      0  

    Default Override moveDistance

    Override moveDistance


    I found it to be better to use "FixedButton" functionality applied to all buttons, but here's how you override moveDistance:

    Code:
    Ext.define('App.override.event.recognizer.Tap', {
        override: 'Ext.event.recognizer.Tap',
     
        handledEvents: ['tap', 'tapcancel'],
     
        onTouchStart: function(e) {
            if (this.callSuper(arguments) === false) {
                return false;
            }
     
            this.startPoint = e.changedTouches[0].point;
        },
     
        onTouchMove: function(e) {
            var touch = e.changedTouches[0],
                point = touch.point,
                moveDistance = 20;
     
            if (Math.abs(point.getDistanceTo(this.startPoint)) >= moveDistance) {
                this.fire('tapcancel', e, [touch], {
                    touch: touch
                });
                return this.fail(this.self.TOUCH_MOVED);
            }
        },
     
        onTouchEnd: function(e) {
            var touch = e.changedTouches[0];
     
            this.fire('tap', e, [touch], {
                touch: touch
            });
        }
    });

  7. #27
    Sencha User
    Join Date
    Apr 2013
    Posts
    4
    Vote Rating
    0
    mpavlis is on a distinguished road

      0  

    Default Another Solution

    Another Solution


    I started using the release event as well as the tap event
    Code:
    Button: { tap: 'buttonFunc' , release:'buttonFunc'},
    The problem is that the back button in the navigation bar doesn't capture the release event (or at least I could find a nice to access it), which is something that could be added one day. In the mean time I modified
    src/naviagtion/bar and changed the updatedBackButton fucnction to include the release event as well as the tap event.

    Code:
    updateBackButton: function(newBackButton, oldBackButton) {        if (oldBackButton) {
                this.remove(oldBackButton);
            }
    
    
            if (newBackButton) {
                this.add(newBackButton);
    
    
                newBackButton.on({
                    scope: this,
                    tap: this.onBackButtonTap,
                    release: this.onBackButtonTap //added this line here
                });
            }
        },
    Not the nicest solution but it's simple. It will cause the back button/navigation bar to fire the 'back' event if the released event is activated