fix: 部分长按菜单移位的问题

This commit is contained in:
kuaifan 2022-06-22 23:39:43 +08:00
parent db4678770d
commit 68eace11de
4 changed files with 4 additions and 4 deletions

View File

@ -998,7 +998,7 @@ export default {
const wrapRect = this.$refs.menuProject.getBoundingClientRect();
this.operateStyles = {
left: `${event.clientX - wrapRect.left}px`,
top: `${projectRect.top}px`,
top: `${projectRect.top + this.windowScrollY}px`,
height: projectRect.height + 'px',
}
this.operateVisible = true;

View File

@ -1076,7 +1076,7 @@ export default {
const wrapRect = this.$el.getBoundingClientRect();
this.operateStyles = {
left: `${event.clientX - wrapRect.left}px`,
top: `${projectRect.top}px`,
top: `${projectRect.top + this.windowScrollY}px`,
height: projectRect.height + 'px',
}
this.operateVisible = true;

View File

@ -184,7 +184,7 @@ export default {
const wrapRect = this.$el.getBoundingClientRect();
this.operateStyles = {
left: `${event.clientX - wrapRect.left}px`,
top: `${projectRect.top}px`,
top: `${projectRect.top + this.windowScrollY}px`,
height: projectRect.height + 'px',
}
this.operateVisible = true;

View File

@ -653,7 +653,7 @@ export default {
const wrapRect = this.$refs.list.$el.getBoundingClientRect();
this.operateStyles = {
left: `${event.clientX - wrapRect.left}px`,
top: `${dialogRect.top}px`,
top: `${dialogRect.top + this.windowScrollY}px`,
height: dialogRect.height + 'px',
}
this.operateVisible = true;