You are not logged in.

xhe

Beginner

  • "xhe" started this thread

Posts: 37

Location: Sunnyvale, California, USA

  • Send private message

1

Monday, August 26th 2019, 5:49pm

how can we get click position in callback function instead in the log panel?

Hi All,
Can I as if there is a way to get user mouse click event position's ath and atv value in the callback function?
I know if we use 'O', the ath and atv value will be printed on the debug panel, but in my case, I want to get it automatically in somewhat onClick event, is this possible?
Thanks and waiting for your suggestion

spacerywirtualne

Professional

Posts: 1,117

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Monday, August 26th 2019, 9:34pm

I don't know if that's exactly what you want.

Source code

1
<events name="gmathatv" keep="true" onclick="screentosphere(mouse.x, mouse.y, toh, tov);trace('ath: ',get(toh),' atv: ',get(tov))" />


docu

Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

xhe

Beginner

  • "xhe" started this thread

Posts: 37

Location: Sunnyvale, California, USA

  • Send private message

3

Tuesday, August 27th 2019, 6:33am

yes, thanks for your information.