• Content Count

  • Joined

  • Last visited

  1. Hey folks, first post etc. I'm trying to make a minesweeper clone, and I want to be able to right click on a tile sprite to 'flag' it, but I can't figure out how to make a right click trigger an actual click event instead of opening the context menu. I tried adding a custom `contextmenu` handler to the canvas itself to prevent the context menu from opening, but that stiff didn't trigger a click event, as https://github.com/pixijs/pixi.js/issues/36 makes me think it should. The handler I used was this: function contextmenu_handler(event) { console.log('right click!'); return false; } very simple, and that did intercept the right click (no context menu opened), but as I said, no mouseup or mousedown event on the Container object. I tried googling a bit to find a solution, but I couldn't find anything relevant, aside from the issue I linked earlier. Is this just not something I can do with pixi (or in a web-based game)? Or am I missing something?