鼠标滚轮页面缩放时,默认仅工作台可用,其他位置禁用。事件部分主题颜色搭配bug
parent
b874a30f52
commit
21e63903bf
|
|
@ -178,7 +178,7 @@
|
|||
}
|
||||
.event-type {
|
||||
.event-type__content {
|
||||
background-color: #f5f5f5;
|
||||
// background-color: #f5f5f5;
|
||||
padding: 10px 20px;
|
||||
border-radius: 6px;
|
||||
.event-type__content__item {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,16 @@
|
|||
|
||||
// 右键
|
||||
const { menuOptions, onClickOutSide, mousePosition, handleMenuSelect } = useContextMenu();
|
||||
// 阻止页面ctrl+鼠标滚轮进行缩放
|
||||
document.addEventListener(
|
||||
'wheel',
|
||||
function (event) {
|
||||
if (event.ctrlKey) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
{ passive: false },
|
||||
);
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Loading…
Reference in New Issue