Fixed a minor error when clicking without dragging.