diff --git a/.gitignore b/.gitignore index 9d6455a..13d1d9f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ build deploy.sh + +CMakeLists.txt.bak diff --git a/src/Core/Src/GLCore.cpp b/src/Core/Src/GLCore.cpp index 4ddbbc5..86bbf31 100644 --- a/src/Core/Src/GLCore.cpp +++ b/src/Core/Src/GLCore.cpp @@ -195,10 +195,12 @@ void GLCore::mouseMoveEvent(QMouseEvent* event) const float y = static_cast(event->position().y()); LAppDelegate::GetInstance()->GetView()->OnTouchesMoved(x, y); // 将当前鼠标位置传递给LAppDelegate +#if !defined(EMBEDDED_LINUX) if (isLeftPressed) { // 鼠标左键按下 const QPoint newPos = event->globalPos() - currentPos; this->move(newPos); } +#endif } void GLCore::mousePressEvent(QMouseEvent* event)