Corrected algorithm for handle drag resizing.