<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — RawImageTouchForwarder incorrect with non-centered pivot]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=2429</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2429&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in RawImageTouchForwarder incorrect with non-centered pivot.]]></description>
		<lastBuildDate>Fri, 31 Jul 2026 12:40:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: RawImageTouchForwarder incorrect with non-centered pivot]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9994#p9994</link>
			<description><![CDATA[<p>Hi.</p><p>Many thanks for the fix. <br />I&#039;ll include it in the next update.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 31 Jul 2026 12:40:00 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9994#p9994</guid>
		</item>
		<item>
			<title><![CDATA[RawImageTouchForwarder incorrect with non-centered pivot]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=9993#p9993</link>
			<description><![CDATA[<p>Hi,</p><p>I am using the same setup as the Tileset on UI example: the Tileset is rendered to a RenderTexture, which is displayed in a UI RawImage using RawImageTouchForwarder.</p><p>My RawImage is anchored in the top-right corner and has a pivot of (1, 1). With this pivot, pointer input is only detected near the top-right area, and zooming is not centered on the cursor.</p><p>The issue is in RawImageTouchForwarder.cs, inside the ProcessTouch method. This line assumes that the pivot is always centered:</p><div class="codebox"><pre><code>localPosition += sizeDelta / 2.0f;</code></pre></div><p>Replacing it with:</p><div class="codebox"><pre><code>localPosition += sizeDelta * image.rectTransform.pivot;</code></pre></div><p>fixes pointer input and cursor-targeted zoom for any pivot.</p><p>Could you please review and include this fix?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (sviudes)]]></author>
			<pubDate>Thu, 30 Jul 2026 16:05:07 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=9993#p9993</guid>
		</item>
	</channel>
</rss>
