Overhaul mouse gestures library