你好,我有一个带有 AbsoluteLayout
的页面,并在其上添加了 (pan)="onPan($event)"
手势。
我注意到如果页面上还有一个 ScrollView
,并且试图从滚动视图上进行拖动,则不再触发 onPan
事件。这只会在 Android 上出现问题,在 iOS 上完美运行。
<AbsoluteLayout width="100%" (pan)="onPan($event)">
<StackLayout left="{{tabs.store.left}}" height="100%" width="100%">
<store></store>
</StackLayout>
<StackLayout left="{{tabs.profile.left}}" height="100%" width="100%" class="StaticBg">
<profile></profile>
</StackLayout>
</AbsoluteLayout>
我的store
组件有一个ScrollView
,但在安卓设备上无法从该页面拖动。很感激您提供的任何帮助!
<ScrollView>
中有两个需要处理手势的容器怎么办?例如:一个<ScrollView>
中有2个图像旋转木马?如果能提供示例/样例将不胜感激。 - rynop