cross-hair and mouse cursor are not snapped together after hotkey is pressed
Description
In v5.x, when pressing a 'M' hotkey (I believe this is also reproducible for D/G hotkeys, but the video becomes too big for upload), wherever the mouse cursor is located within the boundaries of an object (Text, value, Name, line), both the cross-hair and mouse cursor are snapped to the appropriate location (I assume it is the H Align setting), such that when the user moves the mouse cursor, the object moves without stuttering. For other objects (Symbols, footprints for example), wherever the user places the mouse cursor within the object's boundary, both cross-hair and mouse cursor are not snapped anywhere i.e. they don't change their location, and the user can move the object without stuttering as well.
However, in v6.0 RC1, this is not he case for all objects, the user should exactly put the mouse cursor where KiCAD is expected to snap the cross-hair after pressing a hotkey, otherwise when a hotkey is pressed, the cross-hair snaps correctly, but the mouse cursor location is unchanged, there it is possible to see some distance between the cross-hair and mouse cursor, as soon as the user moves the mouse cursor, the object's cross-hair follows the mouse cursor to an unwanted location. This behavior applied to both, schematic and PCB editors in v6.0 RC1. This is what has been causing wires to form weird dialogues as well, the mouse cursor is not following the cross-hair.
It is either cross-hair stays where it is, or the mouse cursor should follow it
The video below compares v5.x and v6.0 RC1 behavior. It is very clear how convenient it is to move objects in v5.x, contrary to v6.0 RC1 which is extremely annoying.
Steps to reproduce
- Watch the video.
KiCad Version
Application: KiCad (64-bit)
Version: (6.0.0-rc1-120-ge56e61ffb5), release build
Libraries:
wxWidgets 3.1.5
Platform: Windows 10 (build 19042), 64-bit edition, 64 bit, Little endian, wxMSW
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.5.0
Curl: 7.78.0-DEV
ngspice: 35
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON