Saya memiliki ScrollView ini:
<ScrollView orientation="horizontal" id='scroll'>
<StackLayout orientation='horizontal' swipe='swipe'>
<Image src="image1" />
<Image src="image2" />
<Image src="image3" />
<Image src="image4" />
</StackLayout>
</ScrollView>
dan js:
function swipe(args) {
var scroll = args.view;
scroll.scrollToHorizontalOffset(0, true);
}
exports.swipe = swipe;
Saya berharap setiap gesekan yang saya lakukan pada scrollView, itu akan menuju ke horizontalOffset yang saya atur pada scrollToHorizontalOffset tetapi tidak berfungsi.