rename handleMouseEvents to handleGestureEvents