Refactor touch event handling for graphs

now use onGestureListener