<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1882&amp;type=atom" />
	<updated>2021-12-01T10:23:59Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1882</id>
		<entry>
			<title type="html"><![CDATA[Re: How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7931#p7931" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-12-01T10:23:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7931#p7931</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to snap zoom to "sharp" integers when zoomed with finger gestures?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7930#p7930" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mikejm]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1782</uri>
			</author>
			<updated>2021-12-01T07:50:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7930#p7930</id>
		</entry>
</feed>
