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
Code
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();
);
Display More