[ionic-4]infinite scroll with ion-segment not working properly?

I have two segment section each has different content. if i scroll segment both sections are scroll. How i prevent this. and how i have two separte scroll section in ion-segment and two infinite scroll.