- This topic has 7 replies, 2 voices, and was last updated 11 years, 7 months ago by
support-michael.
-
AuthorPosts
-
jailbirdMemberHow disable multitouch. How enable only one touch ( with one finger ) .
Thanks
November 19, 2013 at 11:43 am #344602
support-michaelKeymasterCan 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.
November 19, 2013 at 12:38 pm #344608
jailbirdMemberOk,
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
November 19, 2013 at 1:34 pm #344612
support-michaelKeymasterI’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?November 20, 2013 at 3:32 am #344633
jailbirdMemberMy project is completely written in JavaScript. All elements are generated in .js file.
November 21, 2013 at 2:20 am #344661
jailbirdMemberI need for example :
$(“#elem1”).bind(“touchstart”, function () {
$(“#elem2”).off(“touchstart”);
…..
});$(“#elem1”).bind(“touchend”, function () {
$(“#elem2”).on(“touchstart”);
…..
});Function “off” works but not function “on” 🙁
November 21, 2013 at 5:28 am #344666
jailbirdMemberOk , 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){ ..... } });
November 21, 2013 at 6:32 am #344673
support-michaelKeymaster>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.
-
AuthorPosts