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

Annotations block mousedown event even when dragging is disabled #10961

Closed
f1ghtingfalcons opened this issue Jun 11, 2019 · 1 comment · Fixed by #10970
Closed

Annotations block mousedown event even when dragging is disabled #10961

f1ghtingfalcons opened this issue Jun 11, 2019 · 1 comment · Fixed by #10970
Assignees

Comments

@f1ghtingfalcons
Copy link

Expected behaviour

When an annotation is not considered 'drag-able' it should not call Event​.stop​Propagation(). This can mess with click handlers implemented on the element by the user.

Actual behaviour

All annotations register a mousedown event handler and call stop​Propagation() even when they are not drag-able.

Live demo with steps to reproduce

https://jsfiddle.net/f1ghtingfalcons/jnhtpc6x/14/

In the demo clicking on the series or any where outside the annotation will show an alert. Clicking in the annotation area will result in nothing.

Product version

Highcharts JS v7.1.2 with Annotations Module

Affected browser(s)

any

@pawelfus
Copy link
Contributor

Thanks for reporting this bug @f1ghtingfalcons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants