A simple example of a panorama following a mouse cursor, wrote from nothing to do
https://panosphera.ru/gallery/follow-mouse/
Code
<layer name="follow_mouse_area"
type="container"
keep="true"
parent="area"
handcursor="false"
zorder=""
capture="false"
width="100%"
height="100%"
bgcapture="true"
onhover="follow_mouse();"
onout="follow_mouse_stop();"
/>
<action name="follow_mouse">
set(hitx, get(layer[mouse_area].hitx));
set(hity, get(layer[mouse_area].hity));
if(hitx GT 0.5, set(value_force_h, calc((hitx - 0.5)*(1))); , set(value_force_h, calc((0.5 - hitx)*(-1))););
if(hity GT 0.5, set(value_force_v, calc((hity - 0.5)*(1))); , set(value_force_v, calc((0.5 - hity)*(-1))););
set(hlookat_moveforce, get(value_force_h));
set(vlookat_moveforce, get(value_force_v));
</action>
<action name="follow_mouse_stop">
set(hlookat_moveforce,0);
set(vlookat_moveforce,0);
tween(view.vlookat, 0, 1.5, easeoutback);
</action>
Alles anzeigen
P.S. As a result, you can get something like this https://panosphera.ru/gallery/copter-model/