elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.62k stars 8.22k forks source link

[Controls] Debounce time slider selections #193227

Open Heenawter opened 1 month ago

Heenawter commented 1 month ago

Describe the bug: We should debounce the time slider selections when the user is dragging so that we aren't firing requests nearly as often. Currently, dragging and dropping the pins on a time slider feels... extremely laggy.

Steps to reproduce:

  1. Add a time slider control to one of the sample dashboards (we want to ensure the Dashboard has multiple panels, so this is easiest)
  2. Open the time slider and try to drag the pins around
  3. Notice how everything slows down and dragging is jittery :fire:

Expected behavior: We should debounce these drag updates so that the UI updates to show the "dragging", but the timeslice updates are debounced so that we aren't firing a million requests.

Note that we should not debounce the play and/or next/previous buttons. Only the dragging.

Video:

https://github.com/user-attachments/assets/8f3df993-bdba-4ca4-8b68-143ffd088019

elasticmachine commented 1 month ago

Pinging @elastic/kibana-presentation (Team:Presentation)