rework and improve tool bar pop menus

This commit is contained in:
Stewart Allen 2024-06-05 17:36:35 -07:00
commit 3a97903017
9 changed files with 179 additions and 129 deletions

View file

@ -65,7 +65,6 @@ function startIt() {
console.log(`${opName} cannot pre-empt hover`);
return;
}
$('lay-flat').classList.add('selected');
api.feature.hover = true;
enabled = true;
alert = api.show.alert(`[ESC] to end ${opName}`, 600000);
@ -74,7 +73,6 @@ function startIt() {
function endIt() {
if (enabled) {
api.hide.alert(alert);
$('lay-flat').classList.remove('selected');
api.feature.hover = false;
enabled = false;
alert = undefined;