mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
perf: 手机端消息菜单居中
This commit is contained in:
parent
9251ccbb12
commit
594c19da03
@ -2874,12 +2874,13 @@ export default {
|
||||
if (rect.bottom > scrollerRect.bottom) {
|
||||
height -= rect.bottom - scrollerRect.bottom
|
||||
}
|
||||
const left = this.windowWidth < 500 ? (this.windowWidth / 2) : event.clientX
|
||||
this.operateStyles = {
|
||||
left: `${event.clientX}px`,
|
||||
left: `${left}px`,
|
||||
top: `${top}px`,
|
||||
height: `${height}px`,
|
||||
}
|
||||
this.operateClient = {x: event.clientX, y: event.clientY};
|
||||
this.operateClient = {x: left, y: event.clientY};
|
||||
this.operateVisible = true;
|
||||
})
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user