Freeze Scroll only if scrolling down


#1

I am wondering if anybody knows of a way to freeze the downward scrolling if the y axis on the scroll is equal to a certain position.

For example,
If my scrolls y is -674px, I don’t want to be able to scroll down, But I want to be able to scroll up.

Thanks.