You are not logged in.

1

Thursday, May 24th 2018, 3:06pm

DbleClick Javascript doesnt work on Touch screen

hello there,
i use this plugin to stopDraw polygonal hotspot..
#mce_temp_url#


But unfortunely it doesn't work with Ipad iphone and all device with touchscreen.
Does anyone cant help me ?

i've search on the forum but i found only doucle click for hotspot/layer but not for plugins...

this is the Code used !



"var krpanoplugin = function()
{
var local = this,
krpano = null,
plugin = null,

onDblClick;

local.registerplugin = function(krpanointerface, pluginpath, pluginobject)
{
krpano = krpanointerface;
plugin = pluginobject;

if (krpano.version < "1.0.8.14" || krpano.build < "2011-03-30")
{
krpano.trace(3,"dblclick plugin - too old krpano version (min. 1.0.8.14)");
return;
}

plugin.registerattribute("ondblclick","", function(arg){ onDblClick = arg }, function(){ return onDblClick; });

krpano.control.layer.addEventListener("dblclick", handleDblClick, true);
}

local.unloadplugin = function()
{
krpano.control.layer.removeEventListener("dblclick", handleDblClick);

plugin = null;
krpano = null;
}

function handleDblClick(event)
{
krpano.call( onDblClick );
}}"

spacerywirtualne

Professional

Posts: 1,112

Location: Poland, Europe

Occupation: krpano developer : virtual tours : the cms4vr owner

  • Send private message

2

Thursday, May 24th 2018, 3:34pm

If it does not work then maybe you will consider using the native KRpano function?


events.ondoubleclick


best regards
Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Thursday, May 24th 2018, 3:56pm

... problem solved !


" <events
ondoubleclick="trace(double click); ETC.................."
/>"


thx a lot !!! *love* *love* *love*