performance improvements to dragging