var zoom_val : HTMLInputElement;
var zoom_btn : HTMLInputElement;
var links_elem : HTMLElement;
+var was_wresting: boolean;
var wresting: boolean;
var occregions: wasm_bindgen.RegionList;
let special_count: number | null;
document.getElementById('wresting-warning')!.innerHTML = !wresting ? "" :
" <strong>(wresting mode!)</strong>";
+
+ if (wresting != was_wresting) {
+ ungrab_all();
+ was_wresting = wresting;
+ }
if (wresting) {
let text;
keyops_local['wrest'] = function (uo: UoRecord) {
wresting = !wresting;
- ungrab_all();
mousecursor_etc_reupdate();
}