Frank Guo | 8 Feb 17:13
Favicon

Why we use other div to catch mouse event

Hi Tucker / Max,

There some bugs about mouse events handling when different components overlap.
I found one lzsprite will create another div to catch the mouse events.
Some bugs come from such mechanism. For example LPP-10120, when the function makeTextLink of text  class  will add a span element of the div, but such div will be overlapped by the clickdiv of the other view in lzcanvasclickdiv. 

I believe there must a very reason we choose such mechanism,
could tell me the reason. And it's better to give the some suggestion to resolve such bugs.

thanks a lot
frank

Gmane