Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 爱奥尼亚:Can';在爱奥尼亚使用anchorScroll时,不要向上滚动_Angularjs_Ionic Framework - Fatal编程技术网

Angularjs 爱奥尼亚:Can';在爱奥尼亚使用anchorScroll时,不要向上滚动

Angularjs 爱奥尼亚:Can';在爱奥尼亚使用anchorScroll时,不要向上滚动,angularjs,ionic-framework,Angularjs,Ionic Framework,我们通过设置$location.hash(id)和$anchorScroll()在ionic应用程序中使用scrollTo功能。“向下滚动”功能正常,但一旦使用$anchorScroll和$location.hash()将页面滚动到某个位置,我们就无法向上滚动页面 从中清楚地看到这个问题。单击底部按钮并尝试向上滚动返回 请提供解决方案来解决此滚动问题。关于“离子内容”div add overflow scroll=“true” 有关Ionic Framework中此问题的更多信息,请参见: 我也

我们通过设置
$location.hash(id)
$anchorScroll()
在ionic应用程序中使用scrollTo功能。“向下滚动”功能正常,但一旦使用
$anchorScroll
$location.hash()
将页面滚动到某个位置,我们就无法向上滚动页面

从中清楚地看到这个问题。单击底部按钮并尝试向上滚动返回

请提供解决方案来解决此滚动问题。

关于“离子内容”div add overflow scroll=“true”

有关Ionic Framework中此问题的更多信息,请参见:

我也有同样的问题,这对我来说很有效!非常感谢。这在浏览器和Android上对我有效,但在Android上不起作用iOS@jcarballo在ios平台上遵循我的回答步骤,它也适用于ios。你也救了我!这个答案应该被选为正确答案!
<ion-content overflow-scroll="true">
$scope.scrollTo = function(id) {
    $location.hash(id);
    $ionicScrollDelegate.anchorScroll();
};