Get the ruler moving with the drag

Still buggy yet again with some rounding errors.
As an embedded guy I tend to use integers for everything.
Not really enjoying floating point!
Merge branch 'fordp' of https://github.com/fordp2002/labtool into fordp