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.

gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

Occupation: Krpano developer

  • Send private message

1

Monday, July 23rd 2012, 6:59pm

Javascript HTML5 plugins Can not be used scroll

var krpanoplugin = function()
{
var local = this;

var krpano = null;
var plugin = null;

var plugincanvas = null;
var plugincanvascontext = null;



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

krpano.trace(1,"hello from plugin[" + plugin.name + "]");


plugin.registercontentsize(256,256);

var n = document.createElement("div");
var nf = "<div style='position:relative; top:0px;left:0px; width:100%; height:"+plugin.height+"px;background-color:#000000;overflow:scroll;-webkit-overflow-scrolling:touch;'><div style='position:relative; top:0px;left:0px; width:1000px; height:72px;background-color:#ffffff;', id='sss'></div></div>"
n.innerHTML = nf;

plugin.sprite.appendChild(n);




}



local.unloadplugin = function(){
plugin = null;
krpano = null;
}

local.onresize = function(width,height)
{
return false;
}

};

Javascript HTML5 plugins Can not be used scroll


preventDefault(); ???

2

Thursday, July 26th 2012, 11:11am

Hi, I don't have an answer yet, but I will check it.

gongdeming

Beginner

  • "gongdeming" started this thread

Posts: 21

Location: WuHan HuBei China

Occupation: Krpano developer

  • Send private message

3

Thursday, July 26th 2012, 4:46pm

*g* Thank you for your quick feed back. I'm looking forward your answer soon.