Commit 6cad2183 by 前端

修复弹框频闪

1 parent e10b5d07
......@@ -589,6 +589,7 @@
border-radius:4px;
color:#fff;
font-size:12px;
pointer-events: none;
p{
margin:0;
}
......
......@@ -504,11 +504,14 @@ MapService.prototype = {
let questionIcon = infoDiv.querySelector('.question_icon');
if(questionIcon){
let _obj = infoDiv.querySelector('.popover_box');
questionIcon.addEventListener('mouseover',function(){
questionIcon.addEventListener('mouseenter',function(e){
console.log(e.stopPropagation)
_obj.style.display = 'block';
e.stopPropagation()
})
questionIcon.addEventListener('mouseout',function(){
questionIcon.addEventListener('mouseleave',function(e){
_obj.style.display = 'none';
e.stopPropagation()
})
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!