fix gestureDetector