Overlap count not accurate

I have three cards overlapping, but the counter only says two. It seems like the detection is not accounting for the extra height of the middle card due to the line breaks?

image

1 Like

Maybe I don’t understand the algorithm. I would expect this to be 3 as well:

image

1 Like

Collisions are hard :joy::joy:

2 Likes

sadly yes they are – especially calculating them in real time without tanking performance

2 Likes

thx to this i found a bug/typo in the overlap calc, now this situation correctly returns

1 Like

if ur curious this my overlap code, it runs in a webworker and is triggered to update when you do stuff like scroll or interact with a card

2 Likes

It seems like the overlap code thinks these cards are bigger than they are rendered here. (https://kinopio.club/-tools-tools-tools-FGpmktMqZRcuS686MCWXl). It feels like there’s a race condition where the overlap code is running before the kinopio space “preview” gets tidied up, hence the larger assumed card size and higher overlap count.

Other reports of bugs with overlap count: https://futureland.tv/ethan/entry/136533?fullscreen=1

Yes that’s because card dimensions are not being recalculated after the spacelink data is ready

2 Likes

fix released, let me know how it is now

2 Likes