bounds for presentation arrows and service items

This commit is contained in:
Chris Cochrun 2022-08-24 13:16:45 -05:00
parent af6f5678e4
commit 7c51d4a868
3 changed files with 18 additions and 1 deletions

View file

@ -158,6 +158,8 @@ Item {
}
function nextSlideAction() {
if (currentServiceItem === totalServiceItems)
return;
const nextServiceItemIndex = currentServiceItem + 1;
const nextItem = serviceItemModel.getItem(nextServiceItemIndex);
print("currentServiceItem " + currentServiceItem);
@ -178,6 +180,9 @@ Item {
}
function previousSlideAction() {
if (currentServiceItem === 0) {
return;
};
const prevServiceItemIndex = currentServiceItem - 1;
const prevItem = serviceItemModel.getItem(prevServiceItemIndex);
print("currentServiceItem " + currentServiceItem);