-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
This is a tiny problem, and I'm assuming a very easy fix, but sadly it requires a long explanation as it has a big impact on the user experience.
When you're creating events, you can drag and drop conditions, actions, and even events themselves.
However, dragging actions and conditions has a little issue that has ruined the experience for me many times.
See, to drag something, you have to press and hold the left mouse click, and move the mouse.
in GDevelop, moving the mouse just 1 pixel away begins the drag process. This is actually a bad idea, it should start about 4 pixels away! This is because 1 pixel away is just too sensitive. You can accidentally move the mouse away 1 pixel just by the small pressure you put onto clicking itself, you have to be too precise and careful. So at least I end up accidentally initiating a dragging process when I just mean to click on something, and it can end up moving a bunch of actions from multiple events into another event.
But there's another issue on top of this: After dragging has initiated, letting go of the mouse button will also unselect the item. So if for example I want to select and action, and paste another action above of it that I have already cut or copied, if I accidentally trigger dragging, and then press Ctrl+V, it won't work, because the item has unselected itself and something needs to be selected to be able to paste. This issue where it automatically unselects things also affects the resource viewer, if I want to view an item, and I click something, but accidentally move 1 pixel while clicking, the image will not show.
So in short:
1 - Make dragging initiate after 4 pixels.
2 - Do not make items unselect themselves after initiating dragging, regardless of the item has actually been dragged or not.
Steps to reproduce
- Go to an events sheet
- Select an action inside an event
- Press and hold left click to drag
- Move the mouse just 1 pixel away
- It will start dragging the item. It should not happen until about 4 pixels away.
GDevelop platform
Desktop
GDevelop version
5.6.258
Platform info
Details
OS (e.g. Windows, Linux, macOS, Android, iOS)
OS Version (e.g. Windows 10, macOS 10.15)
Browser(For Web) (e.g. Chrome, Firefox, Safari)
Device(For Mobile) (e.g. iPhone 12, Samsung Galaxy S21)
Additional context
Try dragging items on a Windows desktop for comparison.