fix the bug with PanGesutre hide keyboard