mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Fix ipad drag issue (#2016)
This commit is contained in:
parent
2e309bef7f
commit
5bdcadf93d
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="node-wrapper" :style="nodePosition">
|
<div class="node-wrapper" :style="nodePosition">
|
||||||
<div class="node-default" :ref="data.name" :style="nodeStyle" :class="nodeClass" @dblclick="setNodeActive" @click.left="mouseLeftClick" v-touch:start="touchStart" v-touch:end="touchEnd">
|
<div class="node-default" :ref="data.name" :style="nodeStyle" :class="nodeClass" @dblclick="setNodeActive" @click.left="mouseLeftClick" v-touch:start="touchStart">
|
||||||
<div v-if="hasIssues" class="node-info-icon node-issues">
|
<div v-if="hasIssues" class="node-info-icon node-issues">
|
||||||
<el-tooltip placement="top" effect="light">
|
<el-tooltip placement="top" effect="light">
|
||||||
<div slot="content" v-html="nodeIssues"></div>
|
<div slot="content" v-html="nodeIssues"></div>
|
||||||
|
|
|
@ -334,13 +334,6 @@ export const nodeBase = mixins(
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
touchEnd(e: MouseEvent) {
|
|
||||||
if (this.isTouchDevice) {
|
|
||||||
if (this.$store.getters.isActionActive('dragActive')) {
|
|
||||||
this.$store.commit('removeActiveAction', 'dragActive');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
mouseLeftClick (e: MouseEvent) {
|
mouseLeftClick (e: MouseEvent) {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
const path = e.path || (e.composedPath && e.composedPath());
|
const path = e.path || (e.composedPath && e.composedPath());
|
||||||
|
|
Loading…
Reference in a new issue