【发布时间】:2016-01-04 11:57:35
【问题描述】:
我在我的 ionic 应用程序中使用 $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();
}
【问题讨论】:
标签: ios ionic anchor-scroll