Skip to content

Commit

Permalink
feat(drag): bug fixes for drag.ts (#201)
Browse files Browse the repository at this point in the history
* fix(drag): fixes draggable-panel bug
  • Loading branch information
aryanndwi123 committed Dec 18, 2023
1 parent 6d01e25 commit 5bef5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulator/src/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export function dragging(targetEl: HTMLElement, DragEl: HTMLElement): void {
})

$(DragEl).on('mousedown', () => {
$(`.draggable-panel:not(${DragEl})`).css('z-index', '100')
$(DragEl).css('z-index', '101')
$(`.draggable-panel:not(${DragEl})`).css('z-index', '99')
$(DragEl).css('z-index', '99')
})

let panelElements = document.querySelectorAll(
Expand Down

0 comments on commit 5bef5c6

Please sign in to comment.