You are not logged in.

1

Thursday, August 23rd 2012, 5:15pm

BUG: custom context menu and custom cursor = 2 cursors are showing up

Hi Klaus,

Here's a little annoying bug you can see on one of you examples. I think you could fix this one very easily.

It occurs when we set a custom cursor and custom actions in krpano context menu.

For example here : http://www.krpano.com/examples/10815/exa…rs/cursors.html

When you right-click and select "Fullscreen" in the context menu, you will see the original cursor show up and stay (follow mouse as well) until next click on the pano.

By now the only workaround i found is to add an AS3 plugin with the following code, calling

Source code

1
event.contextclick(null) 
on each contextmenu item onclick action (not very glamourous...) :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import flash.events.MouseEvent;
import krpano_as3_interface;

var krpano : krpano_as3_interface = null;
krpano = krpano_as3_interface.getInstance();

krpano.set("event.contextclick", contextclick);

function contextclick(param:String):void {
	stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseEnter);
	}

function onMouseEnter(event:Event):void {
    	Mouse.hide();
    }

2

Friday, August 24th 2012, 11:27am

Meanwhile,

i found out that when using my "fix plugin" solution

if we set

Source code

1
handcursor="0" 


on an item, the normal cursor doesn't show up anymore.

3

Friday, August 31st 2012, 6:13pm

up^

4

Wednesday, September 5th 2012, 8:08am

Hi,

this happens because of an Flashplayer update which disables the possibility to use the context menu to switch the fullscreen mode.
See also this thread for all details about that:
Flashplayer Bug - Right Click Fullsceen doesn't work (please vote!)

The problem in detail - when clicking the fullscreen item, the viewer tries to change the fullscreen mode, but the new Flashplayer version throws an (unexpected) Security Error, which stops the execution of the immediate following code and so avoids the correct cursor behavior in this case (note - that Flashplayer 'Security Error' can be seen when using the 'Debugger Flashplayer Plugin').

In the next krpano release, this error will be caught so that this can't happen anymore and additionally also the Fullscreen context menu item will be disabled by default.

For the moment I would recommend disabling the Fullscreen item manually by adding this line in the xml:

Source code

1
<contextmenu fullscreen="false" />


Best regards,
Klaus

5

Wednesday, September 5th 2012, 12:23pm

hi Klaus

In fact i don't think it's related to the fullscreen problem.

it happens also (and particurlarly) when i set a custom context menu item.

after clicking on it (with any action called inside) the original mouse cursor pops up

best regards

6

Wednesday, September 5th 2012, 5:09pm

Hi,

okay, I understand - in the meantime I was able to identify and fix the problem - in the next release, it will be fixed.

Best regards,
Klaus

7

Thursday, September 6th 2012, 11:02am

:D thanks

8

Tuesday, September 11th 2012, 1:42pm

Hi Klaus,

may i add this request:

let's say we have a custom cursor set on the tour.

if on the scene we have a big polygonal hotspot (to cover a surface) with capture=false to allow pano rotation while draging panorama, the custom cursor disappear while hovering the hotspot and comes back when out of the hotspot.

the perfect thing would be the custom cursor stays while hovering the hotspot (could be simple to detect if user hover the hotspot normally -> display handcursor, or was already panning (with capture=false) -> display custom cursor).

best regards

9

Thursday, September 13th 2012, 10:26pm

on the contrary

if you start to drag panorama by clicking in it, then you hover polygonal hotspot (without mouse button release) , the correct handcursor will show, even if you get in and out the hotspot.

regards