Merge pull request #1447 from keepassxreboot/fix/content_dragging

Fix interfering mouse events when dragging content
This commit is contained in:
Sami Vänttinen 2021-11-17 08:35:25 +02:00 committed by GitHub
commit a1678cd358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -274,8 +274,6 @@ document.addEventListener('mousemove', function(e) {
return;
}
e.stopPropagation();
if (kpxcPasswordDialog.selected === kpxcPasswordDialog.titleBar) {
const xPos = e.clientX - kpxcPasswordDialog.diffX;
const yPos = e.clientY - kpxcPasswordDialog.diffY;
@ -302,7 +300,6 @@ document.addEventListener('mousedown', function(e) {
return;
}
e.stopPropagation();
kpxcUI.mouseDown = true;
});
@ -311,7 +308,6 @@ document.addEventListener('mouseup', function(e) {
return;
}
e.stopPropagation();
kpxcPasswordDialog.selected = null;
kpxcDefine.selected = null;
kpxcUI.mouseDown = false;