Skip to content

Commit

Permalink
work for the surveyjs/service#1346
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kurmanov committed Aug 23, 2023
1 parent 6ec746b commit 9a29533
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dragdrop/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,12 @@ export abstract class DragDropCore<T> implements IDragDropEngine {
protected doBanDropHere = (): void => { };

protected findDropTargetNodeFromPoint(clientX: number, clientY: number): HTMLElement {
this.domAdapter.draggedElementShortcut.hidden = true;
const displayProp = this.domAdapter.draggedElementShortcut.style.display;
//this.domAdapter.draggedElementShortcut.hidden = true;
this.domAdapter.draggedElementShortcut.style.display = "none";
let dragOverNode = <HTMLElement>document.elementFromPoint(clientX, clientY);
this.domAdapter.draggedElementShortcut.hidden = false;
// this.domAdapter.draggedElementShortcut.hidden = false;
this.domAdapter.draggedElementShortcut.style.display = displayProp || "block";

if (!dragOverNode) return null;

Expand Down

0 comments on commit 9a29533

Please sign in to comment.