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.

21

Sunday, July 8th 2018, 6:59pm

https://dearte.online/zoom/
Click hotspot for layer zoom

22

Thursday, January 24th 2019, 10:05pm

Zoom and drag on simple Image (Solved in krpano)

Suso,

Sorry, I didn't follow this thread and missed to share my findings. Krpano cursor setting solved my zoom alignment pproblem immediatelly:

Source code

1
<control zoomtocursor="true" zoomoutcursor="true" />
in the tour.xml (after the <skin_settings>).
Maybe you (or anybody else) can use it, too.
Pavel

23

Sunday, April 21st 2019, 8:38pm

*thumbsup*
Best
Suso

24

Wednesday, May 13th 2020, 6:03pm

Hi,

sorry, but I can't analyze or debug your code, but here attached the original mwheel-touch-zooming.xml extended with some code for dragging:
index.php?page=Attachment&attachmentID=2167

Best regards,
Klaus
HI there Klaus,

Has there been any change on v1.20 that needs of any extra tweaking of the mwheel-touch-zooming.xml code?

I am trying the same code on v.19 and v1.20 with different results.


V1.19 (https://demo.zakato.com/temp/v19/) works all nicely and as expected in all the devices that I have tried (phone, tablet, laptop and desktop)



V1.20 (https://demo.zakato.com/temp/v20/) on the other hand, works fine on phone, tablet and desktop but gives a problem on my laptop's touchpad (MBPRO). The zoom when scrolling with two parallel fingers works initially fine, but as soon as I zoom with the "pinching" tablet gesture it all stops working (both scrolling and pinching). This is not happening in v1.19 where everything works good.

This post has been edited 1 times, last edit by "zakato360" (May 16th 2020, 12:22pm)


25

Tuesday, July 28th 2020, 11:48am

Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.

Hopefully Klaus will know what's causing this?

Thanks in advance!

VRW_Phil

Trainee

Posts: 66

Location: London

Occupation: Krpano Custom Coding. Responsive Websites.

  • Send private message

26

Thursday, February 4th 2021, 9:07am

v1.20 Pinch Zoom - Not Working

Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.

Hopefully Klaus will know what's causing this?

Thanks in advance!
I am having the same issue, has anyone been able to find a solution?

27

Monday, February 8th 2021, 2:36am

zoom popup image to cursor

Hi, I'm trying to modify the code in that way to get solution for zooming to point indicated by cursor. Now it is always the center of the popup image. "zoomtocursor" doesn't work for this one.What do I need to change or add to make it happend?
Thank you in advance.

28

Friday, February 19th 2021, 11:59am

Quoted from "Alexander360"



Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.
Hopefully Klaus will know what's causing this?
Thanks in advance!
I am having the same issue, has anyone been able to find a solution?
I have just tested with the latest 1.20.9 release and the problem is still the same with mac book track pad not working correctly (or at all) to pinch zoom or 2 finger scroll on an image layer.

Any ideas? Klaus, is this something that could be fixed?

Thanks as always!

29

Monday, February 22nd 2021, 3:51pm

Quoted from "Alexander360"



Finding the same problem here too with v1.19 working fine, v1.20 pinch zoom on macbook trackpad not working as per zakato360's code.
Hopefully Klaus will know what's causing this?
Thanks in advance!
I am having the same issue, has anyone been able to find a solution?
I have just tested with the latest 1.20.9 release and the problem is still the same with mac book track pad not working correctly (or at all) to pinch zoom or 2 finger scroll on an image layer.

Any ideas? Klaus, is this something that could be fixed?

Thanks as always!
I think I've found a workaround for anyone with this problem. By adding an if statement to check it the device is a mac, this seems to do the trick:

Source code

1
2
3
4
5
<!-- the action for zooming either via the mouse wheel for via touch gestures -->	<action name="image_onmousewheel">		if(iszoom,
		<!-- THE WORKAROUND -->		if(!device.mac,						if(wheeldelta_touchscale GT 0,				<!-- touch zoom -->				if(startzoom,					set(startzoom,false);					copy(start_wheeldelta_touchscale, wheeldelta_touchscale);					copy(start_imagescale, layer[image].scale);
				  );
				div(tmp, wheeldelta_touchscale, start_wheeldelta_touchscale);				mul(layer[image].scale, start_imagescale, tmp);							);			  ,				<!-- mouse wheel zoom -->				mul(sit,get(wheeldelta),0.05);				mul(sit,layer[image].scale);				add(layer[image].scale,sit);
			  );		);	</action>

loki

Beginner

Posts: 47

Location: Berlin

  • Send private message

30

Wednesday, October 27th 2021, 2:39pm

Thanks for this feature, its great!
If the image takes a lot of the screensize it may happen that it is not zoomable at start, because zooming starts at onover event. A workaround would be to tween the image from eg. x="-1000" to x="0".

Mac Touchpad workaround with scale also works, thanks!

The zoomtocursor doesn't work for me either. Is there anyone out there with a solution to that?