У меня есть этот ScrollView:
<ScrollView orientation="horizontal" id='scroll'>
<StackLayout orientation='horizontal' swipe='swipe'>
<Image src="image1" />
<Image src="image2" />
<Image src="image3" />
<Image src="image4" />
</StackLayout>
</ScrollView>
и js:
function swipe(args) {
var scroll = args.view;
scroll.scrollToHorizontalOffset(0, true);
}
exports.swipe = swipe;
Я ожидаю, что каждый свайп, который я сделал на scrollView, будет переходить к HorizontalOffset, который я установил для scrollToHorizontalOffset, но он не работает.