Fix #16199 - buggy dragging of tables in designer

Fixes: #16199

Signed-off-by: Kim Oliver Drechsel <kim@drechsel.xyz>
This commit is contained in:
Kim Oliver Drechsel 2023-02-25 20:12:28 +01:00 committed by William Desportes
parent 531e8798f2
commit ed0ea1e81d
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -1963,13 +1963,13 @@ DesignerMove.enablePageContentEvents = function () {
$('#page_content').off('mousedown');
$('#page_content').off('mouseup');
$('#page_content').off('mousemove');
$('#page_content').on('mousedown', function (e) {
$(document).on('mousedown', function (e) {
DesignerMove.mouseDown(e);
});
$('#page_content').on('mouseup', function (e) {
$(document).on('mouseup', function (e) {
DesignerMove.mouseUp(e);
});
$('#page_content').on('mousemove', function (e) {
$(document).on('mousemove', function (e) {
DesignerMove.mouseMove(e);
});
};