I have a click event which I want when is fired, window scroll to the specific coordinates
<div class="col-xs-12 responsiveView">
<div class="row" id="selectedDay"></div>
<div class="responsiveOrders"></div>
<div class="responsiveNewOrders row">
<div class="orderMenuTitle">
</div>
</div>
,so far I have used the codes below in reference to the jQuery scroll to element and How to go to a specific element on page?
$('html').animate({
scrollTop: $(".responsiveView").offset().top
}, 1000);
and
var x = $('.responsiveView').offset().left;
var y = $('.responsiveView').offset().top;
window.scrollTo(x,y);
animate works fine on browser's responsive view but none of them works on an actual iphone. I have searched a lot and this is not a duplicate! your help is appreciated in advance.