mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
maps: fix pan amount after 2x scaling
old-commit-hash: 9c588e6117b0c25d42877fad1d7e59dce030170f
This commit is contained in:
@@ -286,7 +286,7 @@ void MapWindow::mouseMoveEvent(QMouseEvent *ev){
|
||||
|
||||
if (!delta.isNull()) {
|
||||
pan_counter = PAN_TIMEOUT;
|
||||
m_map->moveBy(delta);
|
||||
m_map->moveBy(delta / MAP_SCALE);
|
||||
}
|
||||
|
||||
m_lastPos = ev->localPos();
|
||||
|
||||
Reference in New Issue
Block a user