Fix problems with the draging of objects causing lots of lag.