Bug ? Or does exist a solution ?
Hi All !
Since 2 week i work on a website with JQM, and i see a little bug (or not). When i use somme script in add with JQM, often with javascript or JQ/JQUI when the user launch a script i try to scroll immediatly with there phone, the scroll is immediatly cancelled and the phone back to the originale place...
Bug observed with iPhone 4/4S and All iOS Simuator..
I give you a exemple of a script who create the bug.
- $(document).delegate('.ui-navbar a', 'click', function () {
$(this).addClass('ui-btn-active');
$('.content_div').hide();
$('#' + $(this).attr('data-href')).show();
$('html, body').animate({
scrollTop: $('div[name="scroll"]').offset().top
});
});
- <div data-role="navbar">
<ul>
<li><a href="#" data-href="a" data-theme="a" class="gros">Campaign<br>Management</a></li>
<li><a href="#" data-href="b" data-theme="a" class="gros-1lign">ClickLocal?</a></li>
</ul>
</div><!-- /navbar -->
If anybody have some information about this... ;)