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, July 29th 2020, 4:10pm

Drag Hotspot Position

I try drag hotspot into 3d view created with everpano.
In the first view the drag function works correctly.
But in the anothers view when moving the mouse, if I don't let go of it, the hotspot separates from the mouse position, but if I drag it little by little it works correctly.

I wanted to put it through the oven because I think it's the right place
the function drag is


Source code

1
2
3
4
5
6
7
8
9
10
11
spheretoscreen(ath, atv, hotspotcenterx, hotspotcentery, calc(mouse.stagex LT stagewidth/2 ? 'l' : 'r'));spheretospace(ath, atv,depth,a,t,d);
sub(drag_adjustx, mouse.stagex, hotspotcenterx);
sub(drag_adjusty, mouse.stagey, hotspotcentery);

asyncloop(pressed,
   sub(dx, mouse.stagex, drag_adjustx);
   sub(dy, mouse.stagey, drag_adjusty);
   screentosphere(dx, dy, ath, atv);
   
   print_hotspot_pos();
);


2

Friday, July 31st 2020, 3:31am

a very important feature. I follow the subject closely. I hope there is a smooth and complete solution.