我在我的离子应用程序中使用$anchorscroll,在
Android上它运行正常但在iOS上我的内容在滚动后卡住了,我无法向上滚动.
我尝试使用overflow-scroll =“true”,但这在我的应用程序中都不起作用…
有人可以帮我这个吗?
function scrollTo() {
console.log("scroll to: " + $stateParams.id);
var anchor = '';
if($stateParams.id === '') {
console.log("empty");
anchor = "birthday-test";
} else {
console.log("not empty");
var employee_id = $stateParams.id;
anchor = "birthday-" + employee_id;
}
console.log("anchor : " + anchor);
$location.hash(anchor);
$anchorScroll();
}
解决方法
This似乎是一个类似的问题.他们似乎叫$ionicScrollDelegate.anchorScroll();而不是$anchorScroll();.这可能是你的问题吗?