Skip to content

Commit ec17cf1

Browse files
committed
fix: the window point not follow touch point on touch screen and enable hi-DPI
Change-Id: I215768f56879aba184e078882bddd0dea2396f97
1 parent 17d0924 commit ec17cf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/mainwindow.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ void MainWindow::delayedMouseReleaseHandler()
25032503
void MainWindow::mouseMoveEvent(QMouseEvent *ev)
25042504
{
25052505
if (_mouseMoved) {
2506-
return Utility::updateMousePointForWindowMove(this->winId(), ev->globalPos() * devicePixelRatio());
2506+
return Utility::updateMousePointForWindowMove(this->winId(), ev->globalPos() * devicePixelRatioF());
25072507
}
25082508

25092509
_mouseMoved = true;

0 commit comments

Comments
 (0)