- Home /
How to scale UI PointerEventData.delta propertly
I have such hierarchy inside my Canvas:
DiagramRenderer (handle OnDrag)
- Viewport (scaled to 0.75)
- Content
The Viewport is scaled to 0.75 for example.
DiagramRenderer handle not scaled PointerEventData.
I want to move Content inside Viewport JUST under my cursor without any additional offset via updating Content's position with PointerEventData.delta. It works while Viewport's scale is 1.
I tried to multiply delta to 1.25 which must lead to right behavior, but there is still a little offset in position relative to the cursor. What am I missing?
Comment
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to bold only the selected characters from a text? 3 Answers
How do I save and load the value of a text? 1 Answer
Toggles/Toggle Groups Question 0 Answers