Download

Render Transform Translation returning incorrectly

Hi,

I’m trying to do a map pan by using drag and drop with a Image widget and to do that I have the following setup:

https://answers.unrealengine.com/storage/temp/309529-annotation-2020-08-08-123552.png

It’s quite straighforwards, I get the mouse local mouse position and substract from that the position where the drag started and the image current translation, then sets the render translation for the image.

The problem

Render Transform Translation for some reason is not returning the same value and makes the image bounce while moving it, I’ve verified the outputs of mouse position, drag start location and both of them are as expected, is this a bug or am I doing something wrong?

Here is a screenshot with the values of each while dragging the mouse slowly:
https://answers.unrealengine.com/storage/temp/309535-annotation-2020-08-08-124308.png

After some more investigation it looks that the summing of the 2D vectors is going haywire

Fixed, it was supposed to be a substraction between drag start and translation :frowning: