Relative Content

Tag Archive for c++winapidirect2d

Direct2D translate transform drifting off of mouse unexpectedly

I’m trying to create panning capabilities for a Direct2D render target. The drawings on the render target should follow the mouse key while the mouse middle button is held down. The problem that is occurring is that the drawing is drifting away from the mouse the further you go.