<?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 — How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1882</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1882&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to snap zoom to "sharp" integers when zoomed with finger gestures?.]]></description>
		<lastBuildDate>Wed, 01 Dec 2021 10:23:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7931#p7931</link>
			<description><![CDATA[<p>Hello.</p><p>This behavior is implemented by the third party script SmoothZoomOnMouseEvents.<br />If you want to add this behavior when the zoom gesture ends, make a new script based on this script, but listen to OnSmoothZoomFinish instead of OnValidateZoom.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Wed, 01 Dec 2021 10:23:59 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7931#p7931</guid>
		</item>
		<item>
			<title><![CDATA[How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7930#p7930</link>
			<description><![CDATA[<p>I am using Online Maps in a mobile app. I have just tested the implementation on my Android phone. The map shows well, and if I zoom in by double tapping the map, it zooms incrementally forward in discrete steps that maintain the focus of the map.</p><p>However, if I zoom in with my fingers (two fingers spreading apart on the screen) it no longer snaps to any given zoom level but rather will show any intermediate level of zoom I set with my fingers. </p><p>The problem with this is the intermediate levels of zoom are blurry so I end up with a lot of blur at most levels of zooming this way.</p><p>Is there any way to ensure the zooming done by fingers in this way snaps to the increments of zoom that will remain sharp?</p><p>I presume I need to assess the zoom increment of the view and then round it up or down to an even integer after each resize gesture but I don&#039;t know how to do this programmatically or if there is an option that handles this automatically already.</p><p>Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (mikejm)]]></author>
			<pubDate>Wed, 01 Dec 2021 07:50:10 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7930#p7930</guid>
		</item>
	</channel>
</rss>
