Skip to content

Commit

Permalink
DrawTool - Remove timetoggle when tool closes
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Sep 26, 2023
1 parent 0d2b839 commit 2402e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/css/mmgisUI.css
Original file line number Diff line number Diff line change
Expand Up @@ -845,20 +845,19 @@
height: 14px;
background: #fff;
border-radius: 2px;
transition: 0.3s;
transition: all 0.3s ease-in-out;
}

.mmgisToggleSwitch input:checked + label {
background: var(--color-c);
}

.mmgisToggleSwitch input:checked + label:after {
left: calc(100% - 2px);
transform: translateX(-100%);
left: calc(100% - 16px);
}

.mmgisToggleSwitch label:active:after {
width: 20px;
width: 14px;
}

/*vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv switch slider vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv*/
Expand Down
1 change: 1 addition & 0 deletions src/essence/Tools/Draw/DrawTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -1817,6 +1817,7 @@ function interfaceWithMMGIS() {
$('.drawToolContextMenuHeaderClose').click()
L_.unsubscribeTimeChange('DrawTool')
L_.unsubscribeOnTimeUIToggle('DrawTool')
$('#DrawTool_TimeToggle').remove()
DrawTool.open = false
}
}
Expand Down

0 comments on commit 2402e04

Please sign in to comment.