When you click a component/part, sometimes the code thinks you are starting to drag it instead of select it. Threshold for dragging should scale with zoom level, also it should take more mouse movement to start a drag when the part/component is connected to another one than if it is unattached.