dropTarget in drag

dropTarget in drag is letting items drop on full squares... etc.

2 Likes

Seems to be if an object hits a full spot, then it returns to its original spot (not necessarily its last spot) and this original spot does not have dropFull set. Nor does the last official spot, where it was at the start of the drag, have the dropFull set. So then other objects can go on top of it.

1 Like

yes... we forgot to set the dropStartX and Y on a successful new placement.

In fixing this we then needed to introduce a dropOriginalX, etc. for when we drop outside all targets if a new parameter called dropOriginal is set to true. This lets us reset of we miss all targets - or not depending on what we want. We had previously a hybrid that did not quite work. This, seriously, led to about 10 different bugs and fixes - this is very very complicated. Things like dragging from outside with origin settings into a List and then back into the drag container would reset the origin, etc. every little change there was something else that was slightly wrong. 10 times!!!! Arg. Satisfying to hopefully fix... but very tricky. About a 5 hour bug fix.

1 Like

All this has been patched in ZIM 019. We will wait to do the NPM as just noticed another issue... will post a bug report but solve it later.