javascript - Don't allow the div to block parent events -


i've elments that, on dispatching mouseenter, creates div cover selected element using div borders.

something this:

function attachselectorbarto(el){             var bar = $('#editor-selection-bar');             bar.css({                 top:el.offset().top,                 left:el.offset().left                 width:el.outerwidth(),                 height:el.outerheight()             }).show();         }         $(function(){             $('[editordata]').mouseenter(function(event){                 event.stoppropagation();                 attachselectorbarto($(this));             }).mouseleave(function(){                 //hideselectorbar();             });         }); 

but, selector div on absolute position , z-index greather other ones. so, when try select elment, under ones don't mouseneter events of course. qyestion is: there method selector div not block other elemnts events ?

nevermind! found css property!

pointer-events:none; 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -