瀏覽器滑鼠事件

SimoonJia發表於2024-10-29

            sceneRef.current.addEventListener('click', clickFunc, false);
            sceneRef.current.addEventListener('dblclick', dblclickFunc, false);
            sceneRef.current.addEventListener('mousedown', mousedownFunc, false);
            sceneRef.current.addEventListener('mouseup', mouseupFunc, false);
            sceneRef.current.addEventListener('mousemove', mousemoveFunc, false);
            sceneRef.current.addEventListener('mouseleave', mouseleaveFunc, false);

相關文章