Bug fix about touch vertical line

Fixed bug from issue #18. The vertical line (when touch is enabled)
doesn't go outside of the frame of the graph any more. Thank you to
@FrederickGeek8 for spotting the issue.