Modify 'zoom in' behavior when close to an edge

It's difficult to zoom in to the edge of a chart since, even if the mouse is very close to the edge, flot still zooms in from the edge a bit.

This PR changes the behavior to 'stick' to the edge when zooming in if the mouse is close to the edge ('close' meaning within 10% of the total width).