Fix the window coordinates so that you can resize.
This commit is contained in:
parent
d6c5a89251
commit
38159a5f84
3 changed files with 5 additions and 6 deletions
|
@ -157,7 +157,7 @@ namespace gui {
|
|||
case MOUSE_MOVE: {
|
||||
if($grab_source) {
|
||||
auto& source = $loot_ui.$gui.get<guecs::GrabSource>(*$grab_source);
|
||||
source.move($router.position);
|
||||
source.move($window.mapPixelToCoords($router.position));
|
||||
}
|
||||
mouse_action(true);
|
||||
} break;
|
||||
|
@ -207,7 +207,7 @@ namespace gui {
|
|||
case MOUSE_MOVE: {
|
||||
if($grab_source) {
|
||||
auto& source = $status_ui.$gui.get<guecs::GrabSource>(*$grab_source);
|
||||
source.move($router.position);
|
||||
source.move($window.mapPixelToCoords($router.position));
|
||||
}
|
||||
mouse_action(true);
|
||||
} break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue