Ionic slide is not working properly inside a modal ( ionic 5)

it is not working as it should.when i stopped moving pointer slide stop at that point.Event if there is one slide, i am able to slide out of the viewport

Found that if we set mode of modal to md the problem above happend.once i changed to ios it started to work fine