You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

xhe

Beginner

  • "xhe" started this thread

Posts: 33

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: 907

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • 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 online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

xhe

Beginner

  • "xhe" started this thread

Posts: 33

Location: Sunnyvale, California, USA

  • Send private message

3

Tuesday, August 27th 2019, 6:33am

yes, thanks for your information.