Browse Source

修正滚轮事件穿透

master
13562321995 3 years ago
parent
commit
59e3b8cbcf
  1. 7
      src/app/ui/collection-tools-examinee/examinationQuestions.ts
  2. 7
      src/app/ui/collection-tools-read/examinationQuestions.ts
  3. 7
      src/app/ui/collection-tools/examinationQuestions.ts

7
src/app/ui/collection-tools-examinee/examinationQuestions.ts

@ -29,6 +29,13 @@ export class examinationQuestionsExaminee {
item.children = this.processingData(allFireElements,realData)
}) :null
this.renderData = data
//阻止 滚轮滚动事件穿透
window.setTimeout(()=>{
(document.getElementById('nodeTree') as any).onmousewheel = (e)=>{
e.stopPropagation();
}
}, 0)
}
//处理数据 将消防要素模板与真实素材结合
processingData(allFireElements,realData){

7
src/app/ui/collection-tools-read/examinationQuestions.ts

@ -29,6 +29,13 @@ export class examinationQuestionsRead {
item.children = this.processingData(allFireElements,realData)
}) :null
this.renderData = data
//阻止 滚轮滚动事件穿透
window.setTimeout(()=>{
(document.getElementById('nodeTree') as any).onmousewheel = (e)=>{
e.stopPropagation();
}
}, 0)
}
//处理数据 将消防要素模板与真实素材结合
processingData(allFireElements,realData){

7
src/app/ui/collection-tools/examinationQuestions.ts

@ -55,6 +55,13 @@ export class examinationQuestions {
})
}
})
//阻止 滚轮滚动事件穿透
window.setTimeout(()=>{
(document.getElementById('nodeTree') as any).onmousewheel = (e)=>{
e.stopPropagation();
}
}, 0)
}

Loading…
Cancel
Save