Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: yuewah on September 05, 2012, 04:16:26 AM
-
The Touch.position is in pixel coordinate in actual device, with the same screen size, iPhone 3GS and iPhone 4 has different pixel density. I am afraid that the calculation of the Touch Drag / Click threshold may not be correct.
-
Pixel density changes yes, but so does the screen resolution then, so it's fine.
-
the UIRoot Automatic is unchecked.
In the actual device, the button size on 3GS and 4G look the same.
when you touch and move the finger for an unit length, e.g. 1 cm, the delta move of 4G is doubled to 3GS in pixel. So the Click / Drag threshold should be doubled as well.
-
UIRoot automatic being unchecked means you need to account for the scale difference. OnDrag value is always in pixels, but your UIRoot is no longer pixel-perfect, so you need to multiply it by UIRoot.manualHeight / Screen.height.
-
Tanks a lot ArenMook!
I was trying to solve that problem for month but cant get the correct.
Now its working thanks.