Created
February 28, 2015 08:12
-
-
Save mzgreen/5610dfaaf9756b6d456a to your computer and use it in GitHub Desktop.
Assuring that mToolbarOffset will get only values from 0 to mToolbarHeight
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if((mToolbarOffset <mToolbarHeight && dy>0) || (mToolbarOffset >0 && dy<0)) { | |
mToolbarOffset += dy; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment