document.addEventListener("contextmenu",(e)=>{
e.preventDefault();
},true);
displayObject.addEventListener("mousedown",(e)=>{
if(e.nativeEvent.button == 0){
console.log("左");
}else{
console.log("右");
}
});
More than 1 year has passed since last update.
Createjsでマウスの右ボタンのmousedownを取得
Last updated at Posted at 2022-12-19
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme