add origin offset reset button

This commit is contained in:
Stewart Allen 2025-07-10 19:01:00 -04:00
commit 4197377d85
6 changed files with 43 additions and 8 deletions

View file

@ -2,7 +2,7 @@
import { api } from '../../core/api.js';
import { env, isDark } from './client.js';
import { addbox, delbox } from '../../core/boxes.js';
import { addbox, delbox, clearboxes } from '../../core/boxes.js';
import { traceDone } from './cl-trace.js';
let showTab, lastTab, tab, iw, ic;
@ -107,6 +107,7 @@ export function clearTabs(widget, skiprec) {
if (!skiprec) {
delete api.widgets.annotate(widget.id).tab;
}
clearboxes();
}
export function updateTabs() {
@ -198,6 +199,7 @@ export function tabAdd() {
export function tabDone() {
delbox('tabb');
clearboxes();
api.hide.alert(alert);
api.feature.hover = false;
if (lastTab) {