x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Drag and drop not working correctly after updating to 4.18

After updating to 4.18, I noticed that visuals of any drag & drop operations in the game won't follow the mouse correctly, and instead are positioned to the left and above the cursor. Even more strange, the distance from the cursor gets larger as it travels to the left or bottom of the screen. The drag and drop was working normally before the update on 4.17. alt text

Product Version: UE 4.18
Tags:
dragerror.png (32.6 kB)
more ▼

asked Jan 01 '18 at 12:05 AM in Bug Reports

avatar image

DELTA_12
126 15 20 25

avatar image DELTA_12 Jan 01 '18 at 12:49 AM

Just tested this on a completely new First Person Example project. Same behavior occurs. The visual of the drag operation is to the left and up of the cursor position and the distance scales with screen position on the respective axes.

avatar image DELTA_12 Jan 01 '18 at 12:51 AM

Not sure if it helps, but I'm using a QHD display. EDIT: I tried it on a FHD display with no change

avatar image Thomas G ♦♦ STAFF Jan 08 '18 at 03:58 PM

Hello DELTA_12,

I have a couple of questions about your issue to help investigate further.

  1. What was the mouse behavior like for your project in 4.17?

  2. Does the issue occur in a clean project for you in 4.17?

Thanks!

avatar image DELTA_12 Jan 08 '18 at 08:22 PM

In 4.17 the behaviour was normal. It happens in a clean project as well.

avatar image TAN_ Mar 27 '19 at 02:18 AM

I am using 4.18.3 and I am having the exact same problem. Is this solved or should I update the engine version for my project ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello again DELTA_12,

I believe that the issue you are experiencing may be related to how you are using the pivot on the "Create Drag Drop Operation" node, changing this pivot to Center Center with your offset should allow your dragged objects to line up with your cursor as intended, using Center Center will allow the dagged visual to be in the center with the mouse; however, there are other pivot options that may work for you better for your project. alt text

Cheers!

more ▼

answered Jan 09 '18 at 03:02 PM

avatar image

Thomas G ♦♦ STAFF
7k 64 4 54

avatar image DELTA_12 Jan 09 '18 at 03:38 PM

No, this doesn't solve the issue. The same behavior still occurs.

avatar image DELTA_12 Jan 09 '18 at 06:30 PM

The offset from the mouse cursor linearly increases with the screen position. It is not constant. At screen position [0,0] (top left corner), there is no offset and the dragged widget is under the cursor where it should be. But near the bottom right corner, it is as much as 200+ px away from cursor. Again, the distance increases with screen position

avatar image Thomas G ♦♦ STAFF Jan 12 '18 at 09:24 PM

Hello again,

Could you provide a detailed list of steps to reproduce your issue so that I can reproduce your issue on our end?

Thank you!

avatar image DELTA_12 Jan 12 '18 at 09:37 PM

I downloaded engine version 4.18, created a new First Person BP project, created a widget that is draggable, created a widget used for visual, set up the drag operation in the draggable widget and played the game. alt text EDIT: I just verified the bug once again. I created a new FP BP project on version 4.17, and it works as it should. After converting the project to 4.18 OR creating a brand new project once again, the issue starts occuring.

op.png (76.7 kB)
avatar image Thomas G ♦♦ STAFF Jan 15 '18 at 04:25 PM

The reason your issue could be occurring is that you don't have a variable setup for a drag offset with your Drag Drop Operation. With the drag offset applied I am not experiencing the issue you appear to be having. You can find a tutorial on making the drag-drop system which uses the drag offset here: https://docs.unrealengine.com/latest/INT/Engine/UMG/HowTo/DragAndDrop/

avatar image DELTA_12 Jan 15 '18 at 04:59 PM

No, that's not the reason. The drag offset variable used in the tutorial is a custom property only used for functionality after the widget has been dropped. This variable doesn't affect the internal drag mechanics in any way. Another odd thing I noticed, is that the dragged widget can move outside the viewport, as shown in the picture. Not sure if it's the intended behavior but I hope it helps. Note that the cursor is not visible on the screenshot, but it's inside the game viewport. alt text

avatar image aa1000 Jan 19 '18 at 06:52 PM

I have the same problem and my widgets go out of the viewport, everything was working fine in 4.15 but now it's all broken, drag doesn't work with some widgets even

avatar image TAN_ Mar 27 '19 at 02:20 AM

I am using 4.18.3 and I am having the exact same problem. Is this solved or should I update the engine version for my project ?

avatar image Naveed Jan 26 '18 at 06:34 PM

I too am seeing this issue whereby 'The offset from the mouse cursor linearly increases with the screen position'. This is happening to me in 4.18.

avatar image DELTA_12 Jan 26 '18 at 08:10 PM

Just to let you know, I still weren't able to fix it or find the cause of this issue. I'm not sure what do do about this, but it breaks the whole interface of my game.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I just tried this on 4.19 Preview 2 and it has been fixed!

more ▼

answered Feb 03 '18 at 09:50 PM

avatar image

Naveed
99 3 4 5

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question