diff --git a/src/components/pivot/index.vue b/src/components/pivot/index.vue
index 4a390d9..4ee08b6 100644
--- a/src/components/pivot/index.vue
+++ b/src/components/pivot/index.vue
@@ -3,8 +3,10 @@
{{ props.label }}
@@ -127,7 +125,8 @@ function onLeave() {
const vline = reactive({
dragEnable: false,
element: undefined,
- originTime: 0
+ originTime: 0,
+ delayTag: false,
});
@@ -156,6 +155,11 @@ function onVLineMousedown() {
// console.log('begin to drag');
mousemoveEventPipes.set(pivot.id, event => {
+ if (vline.dragEnable === false || vline.delayTag === true) {
+ return;
+ }
+ console.log('move pivot', vline);
+
const x = event.clientX || event.x;
pivot.x = x;
const pstate = globalLookup.pstate;
@@ -168,6 +172,16 @@ function onVLineMousedown() {
});
}
+document.onmouseup = () => {
+ vline.delayTag = true;
+ console.log('mouse up');
+ console.log(vline);
+ setTimeout(() => {
+ vline.delayTag = false;
+ }, 300);
+ onVLineMouseup();
+}
+
function onVLineMouseup() {
MovingPivot.dragEnable = false;
mousemoveEventPipes.delete(props.id);
diff --git a/src/components/toolbar/index.vue b/src/components/toolbar/index.vue
index 847fa5e..0146340 100644
--- a/src/components/toolbar/index.vue
+++ b/src/components/toolbar/index.vue
@@ -1,5 +1,8 @@
-