开发者

Browsers supporting event processing in dojox.gfx Surface

开发者 https://www.devze.com 2022-12-13 02:08 出处:网络
Is events processing in dojox.gfx Surface supported by browsers other than Firefox 3? Say, i have a variable named surface that is an instance of a gfx surface, i then listen to开发者_运维技巧 click

Is events processing in dojox.gfx Surface supported by browsers other than Firefox 3?

Say, i have a variable named surface that is an instance of a gfx surface, i then listen to开发者_运维技巧 click events on it using

surface.connect("onclick",null,function(e){ console.debug("clicked on the surface"); });

It works in Firefox 3, but it doesn't in IE8, Goggle Chrome 3, adn Safari 4. Can I do anything about it, or is it not supported by those 3 browsers?

Thanks!


It should work everywhere. But a surface is a container, not an object. Try to catch clicks on shapes. If you still want to use a container, try to catch clicks on a DOM node that is used to define your surface.

0

精彩评论

暂无评论...
验证码 换一张
取 消