Hi all,

I encounter a bug describing the clickable issue while one clickable view
is block by another view which is un-clickable, e.g:

---------------------------------------
<canvas>
   <inputtext name="v1" bgcolor="gray" width="100"
height="60">111</inputtext>
   <view width="100" height="100" bgcolor="red" opacity="0.25">
   </view>
 </canvas>
----------------------------------------

The input field can't input anything in dhtml runtime.
It occurs for DHTML runtime but work for SWF10 runtime.

To look into the case, I created another pure dhtml sample, a snapshot i
got from the codes generated by OL(DHtml runtime):
.......
<body>
<div id="LzInputTextSprite/inputtext" class="lzinputtextcontainer"
style="height: 60px; cursor: auto; -moz-user-select: text;
background-color: rgb(128, 128, 128); width: 100px; clip: rect(0px, 100px,
60px, 0px); z-index: 4;">
<input class="lzswfinputtext" type="text" name="" value="" style="color:
rgb(0, 0, 0); overflow: hidden; height: 56px; width: 96px;">
</div>
<div id="LzSprite/view" class="lzdiv" style="background-color: rgb(255, 0,
0); height: 100px; opacity: 0.25; width: 100px; z-index: 5;"></div>

</html>
Based on the result, I found it's almost impossible pass across the
un-clickable view in our current structure.

So my conclusion is:
1. Is this a valid issue? Though it works in swf10, I noticed that many of
our current structure or <view> design yield to the mechanism of flash
runtime, and that's why it looks a bit messy. But from the perspective of
framework, I tend to insist that this overlap issue should be addressed by
programmer in custom project(They know exactly the hierarchy of their views
and can pass through the event accordingly.) instead of handling them in
LzSprite.

2. Based on current structure of canvas in dhtml runtime: lzcontextdivs,
lzcavasdiv, lzclickdivs, as well as my test case, I can't come up with a
workaround way to fix this issue. Any ideas?

Thanks in advance,
Fred Feng(Yu Feng)

Reply via email to