calculates mousedrag speed in pixels per second