How can I prevent swiping from continuing when I swipe off the phone screen?

When you use virtual mobile or real device, and you are trying two swipe something left to right (image carousel) if I swipe my mouse off of the bound of the screen, then put my mouse back over the screen, it never registers that I have stopped swiping, and the whole page begins to swipe.

Is this a setting? or a defect with Lambdatest