You are not logged in.

1

Friday, November 11th 2011, 10:54am

onMouseUp firing twice

For some reason, it seems that onMouseUp is firing twice every time I am releasing the mouse - is this a known issue ?

Any suggestions for a work-around (or better yet - a fix )?

-MortenFT

2

Friday, November 11th 2011, 11:40am

I never noticed anything like that with the onmouseup-tag. Do you have maybe an onmouseup and onclick-tag set? Because the normal mouseclick involves the onmousedown and -up-tag.

Best regards
Nupsi

3

Friday, November 11th 2011, 1:00pm

Hi,

do you mean in the krpanoJS HTML5 viewer and ONLY on desktop?
if yes - I can confirm that, that will be fixed in the next release,

best regards,
Klaus

4

Friday, November 11th 2011, 2:39pm

I never noticed anything like that with the onmouseup-tag. Do you have maybe an onmouseup and onclick-tag set? Because the normal mouseclick involves the onmousedown and -up-tag.

Best regards
Nupsi
I use the following code:

<events onmousedown="mdown();" onmouseup="mup();"/>
<action name="mdown"> trace('mdown');</action>
<action name="mup"> trace('mup');</action>

When I click and release, I get "mdown, mup, mup" displayed in the log...this is for an object movie - perhaps there is some kind of bug there ?

I am using the Flash version, so no HTML5...

-MortenFT

5

Friday, November 11th 2011, 2:50pm

Hi,

have a look into the "objecktskin.xml":

Source code

1
2
3
4
5
6
<events name="objectskin"
	    	...
	    	onmousedown="mdown();"
	    	onmouseup="mup();"
	    	...
	    	/>


there are custom events defined which were also calling "mdown" and "mup" actions,
and when you have overwritten/redefined these these actions then your actions will be called instead,

best regards,
Klaus

6

Friday, November 11th 2011, 3:58pm

Hi,

have a look into the "objecktskin.xml":

Source code

1
2
3
4
5
6
<events name="objectskin" 
	    	...
	    	onmousedown="mdown();"
	    	onmouseup="mup();"
	    	...
	    	/>


there are custom events defined which were also calling "mdown" and "mup" actions,
and when you have overwritten/redefined these these actions then your actions will be called instead,

best regards,
Klaus


Actually, that is exactly where my code sits - there are no duplicate definitions - only 1 <event/> structure defined, and it is located in objectskin.xml...

-MortenFT

7

Friday, November 11th 2011, 4:57pm

Hi,

okay, but in this case, I have no answer or be able to reproduce that behavior...
can you please upload and post the example?

best regards,
Klaus