Skip to content

Cursor position in viewports offset incorrectly based on where the window is #3137

@LeeSpork

Description

@LeeSpork

Version information:

  • Platform: Windows 10
  • Version:
    • 25.05
    • 25.06

Describe the bug
Example: when the terraform tool is open, your company window is open, and your mouse cursor is pointing at the viewport in the company window instead of the main viewport.

  • When the company window is in the top-left quadrent-ish of the screen, the highlighted land tile will be offset from where you are pointing the cursor, to a degree that gets worse the further the company window is from the top-left corner of the screen.
  • When the company window is in the bottom and/or right halves of the screen, the terraform tool will no longer highlight a tile. (The cursor position is so offset that it exited the bounds of the company window viewport?)
    • Using the terraform tool will apply changes to the last tile that was highlighted (does not apply to other actions such as planting trees or clicking vehicles/stations/towns/buildings/etc).

Also applies to other windows such as vehicle windows, and other tools and actions that are done by clicking on elements of the game world.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions