Skip to content

Commit

Permalink
🐛 修复鼠标连线经过顶部区域时的卡顿
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Nov 10, 2024
1 parent 2b26ac4 commit 1451e7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/core/stage/Camera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { Rectangle } from "../dataStruct/shape/Rectangle";
* 但滚轮会控制摄像机的缩放镜头。同时缩放大小也会影响喷气动力的大小,越是观看细节,喷的动力越小,移动越慢。
*/
export namespace Camera {
// TODO: 这些物理参数要和设置对接
/**
* 每个方向上的动力矢量大小
*/
Expand Down
5 changes: 3 additions & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export default function App() {
},
)}
>
{/* 菜单按钮 */}
{/* 左上角菜单按钮 */}
<IconButton
onClick={(e) => {
if (location.pathname !== "/") {
Expand Down Expand Up @@ -265,7 +265,8 @@ export default function App() {
{isStartFilePanelOpen && <StartFilePanel />}
{/* 中间标题 */}
{useNativeTitleBar ? (
<div className="flex-1"></div>
// h-0 才能完全摆脱划线时经过此区域的卡顿问题
<div className="pointer-events-none h-0 flex-1"></div>
) : (
<>
<Button
Expand Down

0 comments on commit 1451e7c

Please sign in to comment.