# threejs-vue3-ts **Repository Path**: njkisen/threejs-vue3-ts ## Basic Information - **Project Name**: threejs-vue3-ts - **Description**: threejs demo - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-20 - **Last Updated**: 2023-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Three.js 学习记录 [线上预览地址](http://123.56.85.24/trees/#/home) # 引入 three.js npm i -s three # 使用three.js tree.js 在vue使用鼠标改变大小时会报错误,错误如下 Unable to preventDefault inside passive event listener invocation. 解决方法: 在node_modules找到three/examples/jsm/controls/OrbitControls.js 将 `('wheel', onMouseWheel, false)` 替换成 `('wheel', onMouseWheel, { passive: false })`