There is a parent element with an associated child element.
Right now, the child element is hidden and only appears when hovering over the parent. It vanishes when the mouse moves away from the parent due to css settings.
The goal is for the child element to remain visible even if the mouse pointer leaves the parent area, but only if the mouse button is pressed down. The hover effect should be disabled if the mouse button is clicked down and re-enabled once it is released.
This functionality is needed for a draggable feature where the handle (child element) must remain in view when dragging.
Please note that this has to be accomplished without using jquery or other external libraries.