You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, September 23rd 2015, 9:23pm

Center point of zoom should be between fingers

When using the HTML5 viewer on a touch device (tested on iPhone and a Windows 7 touch screen), zoom gestures are performed by spreading two fingers apart. On consumer touch devices (iPad, etc), this zoom gesture is used in photos and mapping applications, and the zoom is centered at the midpoint between the two fingers, so that at the end of the zoom you're looking at a crop of the image that you had at the beginning of the zoom. The center of the zoom in the krpano viewer is unclear, and seems to change during the zoom gesture.

Here is a video of the desired behavior, using a different viewer from krpano:
https://www.dropbox.com/s/fk65fvcadtw7lt3/correct.mov

Here is the krpano behavior:
https://www.dropbox.com/s/orv147thiuaw5xx/translated.mov


It there any way to improve this? We are using the 1.18.5 HTML Viewer.

2

Thursday, September 24th 2015, 6:40am

Hi,

just enable the zoomtocursor control setting:

e.g.

Source code

1
<control zoomtocursor="true" />


Best regards,
Klaus

3

Thursday, September 24th 2015, 5:27pm

Thank you!

4

Thursday, October 1st 2015, 11:23pm

Related to those settings: does fovfriction or touchfriction have any effect on the HTML5 player? I'm having trouble noticing any difference if I set them to zero.

5

Thursday, October 8th 2015, 8:01am

Hi,

the fovfriction setting effects only mouse or keyboard or button zooms,
and the touchfriction setting the friction in the drag2d control mode.

Best regards,
Klaus