How to restrict ionic scrolling area?


Suppose I have a dynamic content of dynamic height ‘x’.
I want to have the scroll view upto height x/2.

The content height is dynamic in nature
And I want the user to see at most height x/2 by scrolling that is the other x/2 height should be inassessible.