Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 23. August 2012, 17:15

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

Quellcode

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

Quellcode

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

Freitag, 24. August 2012, 11:27

Meanwhile,

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

if we set

Quellcode

1
handcursor="0" 


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

3

Freitag, 31. August 2012, 18:13

up^

4

Mittwoch, 5. September 2012, 08:08

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:

Quellcode

1
<contextmenu fullscreen="false" />


Best regards,
Klaus

5

Mittwoch, 5. September 2012, 12:23

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

Mittwoch, 5. September 2012, 17:09

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

Donnerstag, 6. September 2012, 11:02

:D thanks

8

Dienstag, 11. September 2012, 13:42

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

Donnerstag, 13. September 2012, 22:26

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