Added gesture velocity for the drawer. Developer can set the velocity (default is 1200.0f) which will be used on manual show/hide methods, otherwise the duration of the animation will be calculated based on the gesture velocity when any gestures are used to open the menu.
Also using switch statements.