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.

1

Saturday, July 23rd 2016, 1:23pm

hiding the mouse cursor onover [half-solved]

hi,

first this post was a question, but as i found the solution i will share it here:

i have a popup text following the mouse, and the mouse pointer sometimes covers the text.
so i wanted to hide the mouse pointer "onover" while the text popup is shown,
and show it again "onout" when the mouse moves away.

the solution was :

Source code

1
2
3
4
<layer name="popup"
        handcursor="false"
	onover="set(cursors.standard,'none');"
	onout="set(cursors.standard,'default');" />


just note: in case you are tweening the alpha (fading in/out the layer),
you just you must do the cursor reset after the tween is finished,
so that onover cant occur anymore!

best,
index

UPDATE:
sadly this doesnt work when used on a polygon hotspot.
it seems that the polygon area always forces/updates the cursor to be a 'pointer'.

This post has been edited 10 times, last edit by "indexofrefraction" (Jul 24th 2016, 1:34am)