Sie sind nicht angemeldet.

1

Mittwoch, 29. Juli 2020, 16:10

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


Quellcode

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

Freitag, 31. Juli 2020, 03:31

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