initial commit

This commit is contained in:
ygg2
2024-10-24 20:36:06 -04:00
parent f8e10a1e09
commit 8a80fc6936
30 changed files with 2335 additions and 2664 deletions

View File

@@ -90,6 +90,13 @@ class Contextmenu<x, y>{
this.makemenu(event.clientX, event.clientY, addinfo, other);
};
obj.addEventListener("contextmenu", func);
obj.addEventListener("touchstart",(event: TouchEvent)=>{
if(event.touches.length > 1){
event.preventDefault();
event.stopImmediatePropagation();
this.makemenu(event.touches[0].clientX, event.touches[0].clientY, addinfo, other);
}
});
return func;
}
static keepOnScreen(obj: HTMLElement){