I'm making an app in which you have a LazyColumn, and I want to add a "Context Menu" to the items after long pressing
If I don't have a LazyColumn and I use the following code: https://gist.github.com/MKiperszmidSF/4cce633c7384ba09a333ed80d1207632
Credits to: https://stackoverflow.com/a/73754105/9758324
It works. It displays a context menu right where I click
But if I have a LazyColumn, and move the pointerInput to the item (Else, it won't trigger) and do some magic with the offset (explained later), it works on the bottom half of the item, but not the top half (it moves the context waaay to high)
Code: https://gist.github.com/MKiperszmidSF/8be00fab5d5a843d624a4b41ec4b9ea3
The reason why I did what I did with the Y in the offset
Offset(x = it.x, y = it.y * (index + 1))
Was because if I didn't do that, then it would grab the Y offset of the first item in the LazyColumn (No idea why that's the interaction)
Any ideas as to why this is happening?