This question is locked. New answers and comments are not allowed.
I compiled a demo to show what my problem is. The demo works as expected in the simulator, but not on my Android device (Samsung Galaxy S2). I have to click many times for a click to be registered.
This is the HTML
This is the JavaScript
To test, simply create a project with the Kendo UI framework and replace the contents of index.html with the html code above and the code in hello-world.js with the JavaScript code above.
I hope others can reproduce this issue and maybe someone can come up with a solution.
This is the HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="cordova.js"></script>
<script src="kendo/js/jquery.min.js"></script>
<script src="kendo/js/kendo.mobile.min.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="scripts/hello-world.js"></script>
<link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
<link href="styles/main.css" rel="stylesheet" />
</head>
<body>
<div data-role="view" id="tabstrip-home" data-title="Hello World!">
<ul id="categoriesList" data-role="listview" data-style="inset">
<li class="categoryLink" data-entryid="1">Category 1</li>
<li class="categoryLink" data-entryid="2">Category 2</li>
<li class="categoryLink" data-entryid="3">Category 3</li>
<li class="categoryLink" data-entryid="4">Category 4</li>
</ul>
</div>
<div data-role="layout" data-id="mobile-tabstrip">
<header data-role="header">
<div data-role="navbar">
<span data-role="view-title"></span>
</div>
</header>
<div data-role="footer">
<div data-role="tabstrip">
<a href="#tabstrip-home" data-icon="home">Home</a>
</div>
</div>
</div>
<script>
var app = new kendo.mobile.Application(document.body, { transition: "slide", layout: "mobile-tabstrip" });
</script>
</body>
</html>
This is the JavaScript
// Wait for PhoneGap to load
document.addEventListener("deviceready", onDeviceReady, false);
// PhoneGap is ready
function onDeviceReady() {
}
$(document).ready(function() {
$(".categoryLink").live("click", function(e) {
alert('clicked');
selectedEntry = $(this).data("entryid");
$("#projectItems").empty();
getCategoryItems(categories[selectedEntry].categoryid, currentId);
app.navigate('#projectPage', 'slide:right');
});
});
To test, simply create a project with the Kendo UI framework and replace the contents of index.html with the html code above and the code in hello-world.js with the JavaScript code above.
I hope others can reproduce this issue and maybe someone can come up with a solution.