FIX: sometimes stuck of sidebar reorder (#22654)
When the mouse was moved quickly, the browser stayed in drag and drop mode and an additional click was required to exit drag and drop mode.
This commit is contained in:
parent
3da6759860
commit
b719688887
|
@ -84,12 +84,13 @@ export default class SectionLink {
|
|||
dragMove(event) {
|
||||
this.startMouseY = this.#calcMouseY(event);
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
if (!this.drag) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
const currentMouseY = this.#calcMouseY(event);
|
||||
const distance = currentMouseY - this.mouseY;
|
||||
|
||||
|
|
Loading…
Reference in New Issue