Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hoveredObjectId (subscribeCrosshairMove) is not updated when chart is scrolled horizontally #1523

Open
Jokero opened this issue Feb 24, 2024 · 0 comments
Labels
bug Unexpected problem or unintended behavior.
Milestone

Comments

@Jokero
Copy link

Jokero commented Feb 24, 2024

Lightweight Charts™ Version: 4.2.0

Steps/code to reproduce:

  1. Open demo https://jsfiddle.net/p5cbjtu0/5/
  2. Open console
  3. Hover over any marker and check hoveredObjectId in the console (there should be ID)
  4. Scroll the chart horizontally and notice hoveredObjectId does not change unlike logical

Actual behavior:

hoveredObjectId does not change when chart is scrolled.

Expected behavior:

hoveredObjectId should change and reflect the currently hovered marker (object). If there is no hovered marker, hoveredObjectId should be undefined.

Screenshots:

Handler:
image

Hovered marker (orange):
image

Scrolled chart (logical has changed while hoveredObjectId hasn't):
image

CodeSandbox/JSFiddle/etc link: https://jsfiddle.net/p5cbjtu0/5/

@SlicedSilver SlicedSilver added the bug Unexpected problem or unintended behavior. label May 8, 2024
@SlicedSilver SlicedSilver added this to the 5.0 milestone May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected problem or unintended behavior.
Projects
None yet
Development

No branches or pull requests

2 participants