Onmouseup not working on Snap

This is built for snap module not javascript module... -_-

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

there are a lot of information about javascript online


MINDBOGGLING I NEED EXTRA HELP
Can you help

on what?

I cant take all this info I need help

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...
Smap! script pic (4)

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