Adjusted OnScrollAttribute and OnScrollStateChangedAttribute; added unit tests for them.