mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
Basically, when you open a context menu then clear it using the left mouse button on the owner ctrl it incorrectly triggers the LEFTDRAG mouse event. This only occurs when the ctrl is not positioned in the topleft of it's parent window (or when the parent has a large frame), and it comes from the code:
Under these circumstances leftmousepos is in window coords and mousepos is leftmousepos-ctrl.topleft, triggering the drag event. This was tested on dev-3, and I've attached a test package.