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

Not able to get hoveredObjectId from mobile browser #1593

Open
RichieZFX opened this issue May 11, 2024 · 1 comment
Open

Not able to get hoveredObjectId from mobile browser #1593

RichieZFX opened this issue May 11, 2024 · 1 comment
Labels
bug Unexpected problem or unintended behavior.

Comments

@RichieZFX
Copy link

**Lightweight Charts™ Version: 4.0.0

Steps/code to reproduce:

const clickFunction = (param) => {
console.log(param.hoveredObjectId);
}

chart.subscribeClick(clickFunction );

Actual behavior:

You will always get undefined hoveredObjectId on a mobile browser. So i will not be able to match the click to a chart marker and perform some actions.

Expected behavior:

Is there a way for mobile browser to achieve chart marker click listener?

Screenshots:

CodeSandbox/JSFiddle/etc link:

@SlicedSilver SlicedSilver added the bug Unexpected problem or unintended behavior. label May 12, 2024
@RichieZFX
Copy link
Author

I remember this worked for certain earlier versions. It's the same set of code. I wonder how the hoverObjectID was obtained in those versions.

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