Noureldin Zein
Noureldin Zein
That issue doesnt seem to mention boundingClientRect. I know that svelte already has bindings for contentRect among other things but these do not provide the same functionality. Unless I'm mistaken
Im not aware of any of the existing bindings giving absolute x, y positions of the bounded to div. ContentRect just gives the dimensions of the div without taking into...
Which is what I did eventually. Thought it would be nicer to have this built-in though since it can be confusing as to why it doesn't exist. If theres no...
Yes you do have to poll because `ResizeObserver` would only run when the div was resized not when it was dragged and moved. I personally think even if its a...
Yeah but boundingClientRect doesnt only give you size information but positional. I dont believe a ResizeObserver would be able to detect changes to position no? Please correct me if I'm...
Right. So what I'm getting is you wouldnt be against adding this even though its implemented using polling right? If thats the case I could maybe try to navigate myself...
Hey so I came across this implementation in the `runed` package that uses only a `ResizeObserver` and a `MutationObserver`. Am I missing something or does it seem doable without polling?...
Oh ok so its a broken implementation. Sounds good thanks.
That sounds like it would be worse than polling lol.