Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed May 14, 2024
1 parent 62bee96 commit 6b997a6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/dragdrop/dom-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,9 @@ export class DragDropDOMAdapter implements IDragDropDOMAdapter {
const clientX = event.clientX;
const clientY = event.clientY;

if (!!this.fitToContainer) {
rootElementX -= rootElementScrollLeft;
rootElementY -= rootElementScrollTop;
}
//https://github.com/surveyjs/survey-creator/issues/5484
rootElementX -= rootElementScrollLeft;
rootElementY -= rootElementScrollTop;

const shortcutBottomCoordinate = this.getShortcutBottomCoordinate(clientY, shortcutHeight, shortcutYOffset);
const shortcutRightCoordinate = this.getShortcutRightCoordinate(clientX, shortcutWidth, shortcutXOffset);
Expand Down

0 comments on commit 6b997a6

Please sign in to comment.