you are asking for javascript help
but this is FOR snap
yes but the block is programmed primarily in javascript and you are asking about javascript onmouseup
how do i get a eventlistener for right click then
function onrightclick(event) {
if (event.button === 2) {
console.log("Right click");
}
}
window.addEventListener("mousedown", onrightclick);
//or
window.onmousedown = onrightclick;
then for mouseup it's the same thing
idk...
you do it and I'll give you credit...
@bh This is NOT an offsite meeting
just send me the xml file through drive
Yes, exactly...
does that work on your side?
does it not work on yours?
he can just copy the contents of the xml file and paste them into a post, then you can copy all of them, then paste them into a new text file, and call it something like "block.xml"
I haven't tried it...
well whats stopping you from trying it yourself? its only like 6 lines of code
Im too lazy UvU
ok well i can confirm it does work
can you post the code for me here
I'm not exactly good at copying from an image
if (!window.rightclick){
rightclick = false;
onmousedown = (e) => {window.rightclick = (e.button == 2)};
onmouseup = () => {window.rightclick = false};
}
return rightclick;