1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    49
    Answers
    2
    Vote Rating
    3
    svendahlstrand is on a distinguished road

      0  

    Default Unanswered: Button sensitivity: how do I set moveDistance preference?

    Unanswered: Button sensitivity: how do I set moveDistance preference?


    Hi guys!

    In 2.2 button sensitivity should be better but it isn't for me. In another thread I read this:

    Quote Originally Posted by Jamie Avins View Post
    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.
    How do I change this preference?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Answers
    3354
    Vote Rating
    746
    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


    You should be able to configure that like this:

    Code:
    Ext.application({
        name : 'Test',
    
        eventPublishers : {
            touchGesture : {
                recognizers : {
                    tap : {
                        xclass       : 'Ext.event.recognizer.Tap',
                        moveDistance : 8 //8 should be default
                    }
                }
            }
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    49
    Answers
    2
    Vote Rating
    3
    svendahlstrand is on a distinguished road

      0  

    Default


    Thanks, Mitchell!

    Is this documented? I can just find this http://docs.sencha.com/touch/2.2.0/#...g-moveDistance but it doesn't explain how to change the configuration.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,668
    Answers
    3354
    Vote Rating
    746
    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


    If you look up the setup method of Ext you will find an example of using these and even how to disable some.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha Premium Member
    Join Date
    Aug 2009
    Location
    Glasgow, Scotland, UK
    Posts
    61
    Vote Rating
    0
    swarm is on a distinguished road

      0  

    Default


    This is a great fix. We were certainly finding this sensitivity to be slightly too high on Android Enterprise devices.

    Just out of interest, do you happen know how the default value of 8px came about? Is there science behind it?

    Thanks,

    Andrew
    SwarmOnline.com - Web & Mobile App Development and Consultancy

    Check out our book Ext JS 4 Web Application Development Cookbook

    @andrewmduncan
    @SwarmOnline

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar