godotengine / godotengine/godot
TileMap node editor gets confused when mixing two actions
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
v4.4.dev7.official [46c8f8c5c]
v3.6.stable.official [de2f0f147]
### System information
win11
### Issue description
The issue is that the editor gets confused when you mix these two actions:
Copy an area of the TileMap node and while keeping the area copied, scroll in the editor by pressing the spacebar.
### Steps to reproduce
In Godot 4, the area is not selected by pressing the M key, but by activating the selection tool (the arrow icon next to the pencil) in the TileMap node.
In Godot 4, but you need to use CTRL + V immediately after copying the area with CTRL + C.
This is described for Godot 3.6:
1. In the TileMap node:
2. Press the M key to select an area.
3. Press CTRL + C to copy it.
4. At this point, the area is copied. Now, hold down the spacebar and press the left mouse button to move the scroll in the editor.
5. Release the spacebar and mouse button, and you’ll notice the editor gets stuck scrolling. Now, if you move the mouse, the editor will scroll automatically without you giving any further commands.
### Minimal reproduction project (MRP)
...
Contributor guide
Research direction
Start by reproducing the issue in the Godot 4 TileMap node editor using the copy action, then hold Space and drag to pan before releasing both inputs. Trace the TileMap editor's selection, copy/paste, and spacebar-pan input handling; done means releasing Space and the mouse stops scrolling immediately.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100