<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1879&amp;type=atom" />
	<updated>2022-01-20T12:12:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1879</id>
		<entry>
			<title type="html"><![CDATA[Re: Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8035#p8035" />
			<content type="html"><![CDATA[<p>I need that script also to be able to execute my project correctly...</p>]]></content>
			<author>
				<name><![CDATA[alvaro1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1827</uri>
			</author>
			<updated>2022-01-20T12:12:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8035#p8035</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7923#p7923" />
			<content type="html"><![CDATA[<p>I see.<br />I added API so you can affect this.<br />Now you can implement your own validation by name, tag, layer, component, etc.<br />Send me an email (support@infinity-code.com) and I will send you the modified script.<br />Example:<br /></p><div class="codebox"><pre><code>// True - UI element, False - otherwise
OnlineMapsControlBase.instance.OnValidateCursorOnUIElement += go =&gt; go.tag != &quot;Map&quot;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-11-22T10:42:39Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7923#p7923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7922#p7922" />
			<content type="html"><![CDATA[<p>Hello</p><p>This new behaviour may be by design, but if has adversely effected our map usage due to our custom map marker implementation, do you have any suggestions on how we can exclude our custom UI canvas elements from this specific check?</p>]]></content>
			<author>
				<name><![CDATA[clueduppstephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1169</uri>
			</author>
			<updated>2021-11-22T10:14:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7922#p7922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7919#p7919" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thanks for the bug report.<br />This is a planned behavior, not a bug.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-11-20T19:19:53Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7919#p7919</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Map zoom gesture mid point subjected to IsCursorOnUIElement check]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7918#p7918" />
			<content type="html"><![CDATA[<p>Hello</p><p>Using version 3.7.11.1</p><p>Zoom gesture is performing a IsCursorOnUIElement check on the mid point of the two touch events, this has the effect that if you are zooming the map and GUI elements are in the middle of your input touches, the zoom gesture cannot start.</p><p>The check is approximately line 1008 in the script OnlineMapsControlBase.cs.</p><p>In previous versions this check is not performed, we have observed that this behaviour prevents a user from zooming in on a Gui element on the map, as it generally sits in the center of their zoom gesture.</p><p>Best regards</p><p>Steve</p>]]></content>
			<author>
				<name><![CDATA[clueduppstephen]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1169</uri>
			</author>
			<updated>2021-11-19T15:28:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7918#p7918</id>
		</entry>
</feed>
