adobe / spectrum-web-components

Spectrum Web Components
https://opensource.adobe.com/spectrum-web-components/
Apache License 2.0
1.24k stars 200 forks source link

[Bug]: When trying to render the common sp-tooltip (in sp-overlay) for multiple button. If I try to move quickly between buttons, I notice that although tooltip content is changing but location of tooltip is not changing. #4044

Open Vishesh-G opened 7 months ago

Vishesh-G commented 7 months ago

Code of conduct

Impacted component(s)

sp-overlay, sp-tooltip

Expected behavior

tooltip should change its location

Actual behavior

tooltip updating its content but not changing its location

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to '...'
  2. Click on '....'
  3. Scroll to '....'
  4. Check console
  5. See error

Sample code that illustrates the problem

https://studio.webcomponents.dev/edit/JirOxY51y0SAKaQLtLSM/src/index.ts?p=stories

Logs taken while reproducing problem

No response

Westbrook commented 6 months ago

There's a decent amount of nastiness around making this something that is possible with the current API of this element. Could you share some of your goal in taking this path so that we could combine possible alternatives with explicit fixes in our research here?

Vishesh-G commented 6 months ago

I need to display tooltip for more than 50 cards, so to have single tooltip, I am using the same logic that I have used in the sample code. But cards being very close, I am facing this issue.