SharpDX 2.6

When zooming or resizing a window, I change the RenderTarget through the Transform property. As a result, locating the mouse cursor is "lost".

Thirty element targeting On the screen - pointing to the element Thirty.

If anyone knows how to fix this unpleasant effect, I will be very grateful for the hint.

    1 answer 1

    In general, the problem is solved. Got an additional field / property for the "global" position GlobalXY . When zooming earlier, I used only renderTarget.Transform () , now OnScroll is also processed . This allows for the conversion to take into account both the zoom and indents.