mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-04 00:07:04 +00:00
fix: 部分长按菜单移位的问题
This commit is contained in:
parent
db4678770d
commit
68eace11de
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user