mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
Feat:不阻止mousedown、mousemove事件的默认行为
This commit is contained in:
parent
1cd4705ad8
commit
182cdf5153
@ -99,7 +99,6 @@ class Event extends EventEmitter {
|
||||
|
||||
// 鼠标按下事件
|
||||
onMousedown(e) {
|
||||
e.preventDefault()
|
||||
// 鼠标左键
|
||||
if (e.which === 1) {
|
||||
this.isLeftMousedown = true
|
||||
@ -115,7 +114,6 @@ class Event extends EventEmitter {
|
||||
|
||||
// 鼠标移动事件
|
||||
onMousemove(e) {
|
||||
e.preventDefault()
|
||||
let { useLeftKeySelectionRightKeyDrag } = this.mindMap.opt
|
||||
this.mousemovePos.x = e.clientX
|
||||
this.mousemovePos.y = e.clientY
|
||||
|
||||
@ -80,6 +80,7 @@ export default {
|
||||
...mapMutations(['setActiveSidebar']),
|
||||
|
||||
init() {
|
||||
if (!window.katex) return
|
||||
this.list = formulaList.map(item => {
|
||||
return {
|
||||
overview: window.katex.renderToString(
|
||||
|
||||
@ -169,7 +169,7 @@ export default {
|
||||
if (!this.withTransition) {
|
||||
this.withTransition = true
|
||||
}
|
||||
this.mindMap.miniMap.onMouseup(e)
|
||||
if (this.mindMap.miniMap) this.mindMap.miniMap.onMouseup(e)
|
||||
},
|
||||
|
||||
// 视口框的鼠标按下事件
|
||||
|
||||
Loading…
Reference in New Issue
Block a user