I have tried this code that excludes swipe (left & right) on certain pages. Is there a way to exclude pages from left or right swipe only?
Yes, you can useSwipeLeft (as you have) or simply add logic to test the direction variable, e.g.,
if(nav.current == 2 && direction == 'left')
If the animation is reloading, it probably means that the nav.to function is being called, and you may need to check your logic to be sure it's not be called when don't intend it to.