I want to slide to a special item in the carousel. For this i use the reference and the given method 'goToSlide'.
Describe the bug
If I want to move to a slide at the end of the carousel it will scroll the requested item to left. There is much free space at the end of the carousel. I expected, that the carousel will only scroll until the last item is visible.
If I use the arrows, it will stop at the end. The same I expect by using the goToSlide method.
Prerequisite
I want to slide to a special item in the carousel. For this i use the reference and the given method 'goToSlide'.
Describe the bug If I want to move to a slide at the end of the carousel it will scroll the requested item to left. There is much free space at the end of the carousel. I expected, that the carousel will only scroll until the last item is visible.
If I use the arrows, it will stop at the end. The same I expect by using the goToSlide method.
Reproduction Link to codesandbox.