hide before and append selector line when dragging
This commit is contained in:
parent
174f1194ef
commit
ce8cf93170
|
@ -52,6 +52,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// selector must not be visible whilst dragging (mouse down)
|
||||||
|
&:active {
|
||||||
|
.before-node-selector,
|
||||||
|
.append-node-selector {
|
||||||
|
.selector {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.before-node-selector {
|
.before-node-selector {
|
||||||
top: -$selector-height/2 - 1px;
|
top: -$selector-height/2 - 1px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -254,7 +254,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
event.preventDefault()
|
// IMPORTANT: do not use event.preventDefault() here,
|
||||||
|
// else the :active style doesn't work!
|
||||||
|
|
||||||
// we attache the mouse up event listener to the global document,
|
// we attache the mouse up event listener to the global document,
|
||||||
// so we will not miss if the mouse up is happening outside of the editor
|
// so we will not miss if the mouse up is happening outside of the editor
|
||||||
|
@ -287,7 +288,6 @@
|
||||||
|
|
||||||
function handleMouseUp (event) {
|
function handleMouseUp (event) {
|
||||||
if (singleton.mousedown) {
|
if (singleton.mousedown) {
|
||||||
event.preventDefault()
|
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
|
||||||
singleton.mousedown = false
|
singleton.mousedown = false
|
||||||
|
@ -297,7 +297,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleSelectBefore (event) {
|
function handleSelectBefore (event) {
|
||||||
event.preventDefault()
|
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
|
|
||||||
onSelect({
|
onSelect({
|
||||||
|
|
Loading…
Reference in New Issue