add rules for enabling one-way scrolling