|
@@ -111,7 +111,6 @@ function drag(el: HTMLElement) {
|
|
|
// const maxLeft = clientWidth - parentElementRect.width
|
|
|
const maxTop = clientHeight - parentElementRect.height
|
|
|
function onMousemove(e: MouseEvent) {
|
|
|
- console.log("eeeeeeee", e)
|
|
|
// let moveX = parentElementRect.left + (e.clientX - downX)
|
|
|
let moveY = parentElementRect.top + (e.clientY - downY)
|
|
|
// let moveY = e.clientY - downY
|
|
@@ -159,10 +158,6 @@ onMounted(() => {
|
|
|
drag(iconToolsDom.value!)
|
|
|
drag(expendToolsDom.value!)
|
|
|
refreshPos()
|
|
|
-
|
|
|
- iconToolsDom.value!.onclick = (e: any) => {
|
|
|
- e.stopPropagation()
|
|
|
- }
|
|
|
window.addEventListener("resize", onResize)
|
|
|
})
|
|
|
|
|
@@ -199,12 +194,12 @@ onUnmounted(() => {
|
|
|
.iconTools,
|
|
|
.expendTools {
|
|
|
position: fixed;
|
|
|
- right: -2px;
|
|
|
+ right: -6px;
|
|
|
top: 0;
|
|
|
transform: translateY(var(--toolTranslateY));
|
|
|
// margin-top: -29px;
|
|
|
z-index: 2999;
|
|
|
- padding: 0 5px;
|
|
|
+ // padding: 0 5px;
|
|
|
background: rgba(0, 0, 0, 0.4);
|
|
|
border-radius: 200px 0px 0px 200px;
|
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
@@ -250,7 +245,7 @@ onUnmounted(() => {
|
|
|
// margin: 0 30px;
|
|
|
}
|
|
|
.iconArrow {
|
|
|
- padding: 12px 15px;
|
|
|
+ padding: 7px 15px;
|
|
|
width: 28px;
|
|
|
height: 28px;
|
|
|
}
|
|
@@ -266,7 +261,8 @@ onUnmounted(() => {
|
|
|
// transition: transform 0.2s ease;
|
|
|
// transition-delay: 0.2s;
|
|
|
transform: translateY(var(--toolTranslateY));
|
|
|
- display: block;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
}
|
|
|
</style>
|