facebook

How disable multitouch

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #344588 Reply

    jailbird
    Member

    How disable multitouch. How enable only one touch ( with one finger ) .

    Thanks

    #344602 Reply

    support-michael
    Keymaster

    Can you describe what you are attempting to accomplish and what problem you are encountering now?

    More info can help us determine how best to answer this question.

    #344608 Reply

    jailbird
    Member

    Ok,

    I have any jquery action : $(“#elem1”).bind(“touchstart”, function () {…};
    and $(“#elem2”).bind(“touchstart”, function () {…};

    I need disable touchstart for elem2 when run touchstart for elem1.

    thanks

    #344612 Reply

    support-michael
    Keymaster

    I’m kicking this over to our dev team for guidance as I suspect this is going to have contention with the default touch handling.
    Is this behavior part of custom html widget code or are you hacking on mobione widgets directly?

    #344633 Reply

    jailbird
    Member

    My project is completely written in JavaScript. All elements are generated in .js file.

    #344661 Reply

    jailbird
    Member

    I need for example :

    $(“#elem1”).bind(“touchstart”, function () {
    $(“#elem2”).off(“touchstart”);
    …..
    });

    $(“#elem1”).bind(“touchend”, function () {
    $(“#elem2”).on(“touchstart”);
    …..
    });

    Function “off” works but not function “on” 🙁

    #344666 Reply

    jailbird
    Member

    Ok , i have any solution but is not what i want.

    
    var isTouch = 0;
    
    $("#elem1").bind("touchstart", function () {
     isTouch = 1;
    .....
    });
    
    $("#elem1").bind("touchend", function () {
     isTouch = 0;
    .....
    });
    
    $("#elem2").bind("touchstart", function () {
     if (isTouch == 0){
    .....
    }
    });
    
    #344673 Reply

    support-michael
    Keymaster

    >Ok , i have any solution but is not what i want.

    Then is it a solution?

    Also I’m curious why you are using mobione if you are generating your own UI? Seems you really don’t need mobione, do you? MobiOne apps include phoneui.js which setups up the event handling for touch and clicks. In general development that extends outside of or works against mobione’s event handling are considered experimental or custom solutions and not supported by our team. Without more info your project falls into the unsupported experimental category.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: How disable multitouch

You must be logged in to post in the forum log in