/ / क्लिक या टैप मोबाइल पर रजिस्टर नहीं होगा - जावास्क्रिप्ट, jquery, jquery-mobile, svg, google-chrome-devtools

क्लिक या टैप मोबाइल पर रजिस्टर नहीं होगा - जावास्क्रिप्ट, jquery, jquery-mobile, svg, google-chrome-devtools

मैं jQuery मोबाइल 1.3.1 में इस SVG मोबाइल टच इंडिकेटर पर काम कर रहा हूं:

http://jsfiddle.net/frank_o/MCt5X/1/embedded/result/

लेकिन क्रोम देव टूल्स में आईफोन 5 का अनुकरण करते हुए बटन पर क्लिक करने के बाद मुझे पुष्टिकरण संदेश क्यों नहीं मिल रहा है?

$(document).on("pageinit", function () {
$("button").on("vmouseup", function (event) {
showTouchIndicator(event);
});

function showTouchIndicator(event) {
var touchIndicator = $("#touchIndicatorDiv");
var touchIndicatorTemplate = $("#touchIndicatorTemplate");

touchIndicator.html(touchIndicatorTemplate.html());

touchIndicator.css("left", event.pageX - 30);
touchIndicator.css("top", event.pageY - 30);

event.preventDefault();
}
});

उत्तर:

उत्तर № 1 के लिए 1

आप vmouseup को vclick से क्यों नहीं बदलते, यह एक jQuery मोबाइल ईवेंट है जो क्लिक/टैप अंतरों को पाटने के लिए है, मूल रूप से यह किसी भी वातावरण में काम करेगा

$(".ui-page").on("vclick", "a, button, input[type="submit"]",function(event) {
showTouchIndicator(event);
});: