Added right click event listener

This commit is contained in:
csilby01
2024-04-26 17:46:01 -07:00
parent d6b99dfb5f
commit d480380650

View File

@@ -750,6 +750,10 @@ HTMLElement.prototype.onClick = function(func) {
this.addEventListener("click", func)
return this
}
HTMLElement.prototype.onRightClick = function(func) {
this.addEventListener("contextmenu", func)
return this
}
HTMLElement.prototype.onHover = function(cb) {
this.addEventListener("mouseover", () => cb(true))