Single-click doesn't finish wire on pin in specific circumstances

Description

Single clicking on a pin while drawing wires usually finishes the wire and connects it to the pin. I was able to find a reproducible way where this doesn't happen, but instead you need to double click.

Steps to reproduce

  1. Try to replicate circuit in video (wire start and direction matter, resistor position not so much): finish-wire-m

KiCad Version

Application: KiCad Schematic Editor

Version: (5.99.0-10580-ged2f2257ce), release build

Libraries:
	wxWidgets 3.0.5
	libcurl/7.76.1 OpenSSL/1.1.1k zlib/1.2.11 zstd/1.4.9 libidn2/2.3.1 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0

Platform: Linux 5.12.4-arch1-2 x86_64, 64 bit, Little endian, wxGTK, KDE, x11

Build Info:
	Date: May 19 2021 00:14:30
	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.75.0
	OCC: 7.5.0
	Curl: 7.76.1
	ngspice: 34
	Compiler: GCC 11.1.0 with C++ ABI 1016

Build settings:
	KICAD_SCRIPTING=ON
	KICAD_SCRIPTING_MODULES=ON
	KICAD_SCRIPTING_PYTHON3=ON
	KICAD_SCRIPTING_WXPYTHON=ON
	KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
	KICAD_SCRIPTING_ACTION_MENU=ON
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON
Edited by radix