<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Touchpad zoom sensitivity very high]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2266&amp;type=atom" />
	<updated>2024-05-24T12:40:55Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2266</id>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9549#p9549" />
			<content type="html"><![CDATA[<p>If the zoom is float, you need to do some additional calculations.<br />What kind of calculations depends on how and why you are using these methods.<br />But usually you need to multiply or divide the values by the zoomFactor.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMaps.html#aa6d1b5cdfc4ec5cc168b03cb932c46ce">https://infinity-code.com/doxygen/onlin … cb932c46ce</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-05-24T12:40:55Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9549#p9549</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9548#p9548" />
			<content type="html"><![CDATA[<p>These methods in OnlineMapsProjection class:</p><div class="codebox"><pre><code>public abstract void CoordinatesToTile(double lng, double lat, int zoom, out double tx, out double ty);
public abstract void TileToCoordinates(double tx, double ty, int zoom, out double lng, out double lat);</code></pre></div><p>have input parameter int zoom. What if zoom is a float?</p>]]></content>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2024-05-24T06:34:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9548#p9548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9547#p9547" />
			<content type="html"><![CDATA[<p>The main idea of the SmoothZoomOnMouseEvents script is to smoothly round zoom to the next integer.<br />If you need some other behaviour, modify the script to achieve the desired behaviour.</p><p>You can disable zoom by wheel with OnlineMapsControlBase.OnValidateZoom and implement it with required speed in your own script.<br /><a href="https://infinity-code.com/doxygen/online-maps/classOnlineMapsControlBase.html#a7b69a7472cb58a91ac03cd3591808612">https://infinity-code.com/doxygen/onlin … 3591808612</a></p><p>You mean OnlineMapsUtils.GetCenterPointAndZoom, right?<br />This doesn&#039;t use zoom on input, so no problem here.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-05-22T11:11:59Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9547#p9547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9545#p9545" />
			<content type="html"><![CDATA[<p>Thanks for your response. The patch is working, but only if I remove the SmoothZoom. The validation in the SmoothZoomOnMouseEvents does not pass. But the zoomSpeed I think is correct for my application is 0.05. With such low value I think we can like without SmoothZoom.</p><p>But this makes zooming with standard mouse scroll very slow. Is it possible to differentiate touchpad gestures from the standard mouse scrollwheel?</p><p>And lastly, this patch makes the map zoom to be a float, not an integer. I&#039;m worried if centering map and calculating optimal zoom for positions will work correctly, since the methods there assume that zoom is an integer.</p><p>Thanks again for your help.</p>]]></content>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2024-05-22T06:40:43Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9545#p9545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9539#p9539" />
			<content type="html"><![CDATA[<p>I added a setting for zoom speed.<br />The patch is attached.</p><p>P.S. I saw your email, but I won&#039;t reply to it so I can have all the dialogue in one place.<br />Just letting you know that the email was not lost.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-05-20T16:41:22Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9539#p9539</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9538#p9538" />
			<content type="html"><![CDATA[<p>I&#039;ve debugged it deeper, and the UpdateGestureZoomValue method is the only place which uses the zoom sensitivity setting from the tile control. But it is not called at all in my application. Even in the webgl build. </p><p>The UpdateZoom() is called, but the zoom delta there is always 1 or -1. In the ZoomOnPoint I get values like 0.2-0.5 while with the mouse plugged and using the mouse scrollwheel the values are 10 times lower: 0.02-0.05.<br />Both gestures (pinch to zoom and double finger swipe) are too sensitive.</p><br /><p>I was thinking maybe I could decrease the zoom delta in general. Delta = 1 is too high for my application. I was trying to set it to 0.5, and it was working OK after some changes, but the methods CoordinatesToTile and TileToCoordinates expect zoom to be an integer, so they are working incorrectly.</p><p>Please let me know what can I do with that. Maybe it is important that I&#039;m also using SmoothZoom. I&#039;ve sent you link to the webgl build.</p>]]></content>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2024-05-20T13:56:56Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9538#p9538</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9506#p9506" />
			<content type="html"><![CDATA[<p>Zoom sensitivity is a divisor of the distance your fingers need to cover when touch zooming to change the zoom to the same value.<br />It does not affect wheel zoom or zoom on double click.<br />It should affect zoom on touchpad.</p><p>Unfortunately I don&#039;t know your application, what settings, components and APIs you are using.<br />If you want you can email it to me (support@infinity-code.com) and I will check how it works in your application.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-04-26T18:02:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9506#p9506</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9505#p9505" />
			<content type="html"><![CDATA[<p>The zoom sensitivity setting in TileSet control seems not to do anything. Whether it is 0.1 or 5 the zoom always changes by 1.</p><p>The touchpad problem I have on 3 different laptops, so probably my app settings are somehow wrong? The mouse scrollwheel works fine.</p>]]></content>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2024-04-26T10:42:45Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9505#p9505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9504#p9504" />
			<content type="html"><![CDATA[<p>Hi.</p><p>This is the first report of such a problem, and I would recommend you to first check on another device with a touchpad.<br />Your description sounds like a problem with the device.</p><p>Unfortunately, you cannot adjust the sensitivity for the touchpad separately.<br />You can only configure the overall zoom sensitivity in the Control component or via the API.<br />You can&#039;t adjust the double-click sensitivity at all, because there&#039;s either a double click there or there isn&#039;t.<br />You can only disable zoom on double click.</p><p>As a workaround you can try to use some touch framework that Online Maps has integration with.<br />Perhaps it will not have this problem.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2024-04-26T10:07:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9504#p9504</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Touchpad zoom sensitivity very high]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=9503#p9503" />
			<content type="html"><![CDATA[<p>Touchpad is very very sensitive with online maps. Both pitch&amp;zoom and double tap scroll is too sensitive. How can I reduce that?</p><p>Thanks for help.</p>]]></content>
			<author>
				<name><![CDATA[mikli1]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2745</uri>
			</author>
			<updated>2024-04-26T09:14:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=9503#p9503</id>
		</entry>
</feed>
