Up and Down gesture ditection now works properly and triggers an Alert Message.