Hi, Klaus and colleagues
help solve the problem with coordinates on mobile devices android
after pressing the mouse button (touching the screen with a finger), the coordinate values along the x axis appear in the log
on the computer works correctly, on the smartphone - no
Code
<plugin name="p4Scroll"
url="green.png"
keep="true"
parent="stage"
align="center"
width="50%"
height="50%"
alpha="0.9"
autoalpha="true"
zorder="100"
enabled="true"
capture="true"
handcursor="true"
ondown="scrollDown()"
onup="scrollUP()"
/>
<action name="scrollDown" >
showlog(true);trace(!!!!DOWN);copy(prew_x, mouse.x);scrollDn2();
</action>
<action name="scrollDn2" >
trace(mouse.x,/,mouse.stagex);
if(plugin[p4Scroll].pressed, delayedcall(0.0, scrollDn2());)
</action>
<action name="scrollUP" >
sub(mous_delta, mouse.x, prew_x); if(mous_delta != 0, set(dir_x, calc(mous_delta GT 0 ? -1 : 1 ));trace(!!!!UP_prew_x=,prew_x,/,mouse.x=,mouse.x,/,mous_delta=,mous_delta,/,dir_x=,dir_x); slide_list(get(activeplan), get(dir_x)); , trace(!!!!UP_prew_x=,prew_x,/,mouse.x=,mouse.x,/,mous_delta=,mous_delta,/,dir_x=,dir_x);toggle_plan(););
</action>
Display More
Thanks