[r216] BB/DragDrop/Bound to layout bug

Bugs will be moved here once resolved.

Post » Tue Dec 08, 2015 12:46 pm

Problem Description
Not sure if this is related to the BB, Drag/Drop or bound to layout behaviour. But when an object is bound to layout using the behaviour and the object is dragged off screen the position returned from the BB values are incorrect compared to what you would expect.

Attach a Capx
https://dl.dropboxusercontent.com/u/109921357/BB%20bug/BB_bug.capx

Description of Capx
A sprite and a list, dragging the sprite towards the top of the screen as if you wanted to drag it off screen, will fill the list with values return by the BBtop position.

Observed Result
Layout
Image

Dragging the sprite upwards
Image

As seen the list is populated with negative values from the BBtop return value, even though the sprite is bound to layout and never leaves it.

Expected Result
That the returned BBtop value would return 0 as its bound to layout.

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 7

Construct 2 Version ID
r216
B
44
S
11
G
2
Posts: 1,181
Reputation: 6,801

Post » Wed Dec 16, 2015 6:08 pm

Closing as not a bug. Drag-and-drop happens at the beginning of the tick before events run, and bound-to-layout happens at the end of the tick after events run, so you are simply testing the position before the bounding happens.
Scirra Founder
B
378
S
219
G
84
Posts: 23,863
Reputation: 187,919


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests