client X and client Y badly calculated on SVG
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: nickydonna, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Steps to reproduce:
Working on a profession project, so I can share the code base, but using Victory Charts, the event clientY and clientX seem to be badly calculated, creating a bad behavior
Actual results:
Tooltips that should appear on hover don't appear. this seems to be because the calculation is using clientX and clientY to determine the position of the mouse, and if is inside a chart.
Specifically this code: https://github.com/FormidableLabs/victory/blob/main/packages/victory-core/src/victory-util/selection.js#L50
So clientX and clientY should be relative to the position, but they seem to be relative to something else
This seems to be related to relative positioning, but I couldn't reproduce it with simple code.
Sorry I can't share more details, since this is a private project.
Comment 1•4 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•4 years ago
|
||
I don't think we'll be able to get very far unless you can provide a minimal testcase.
Comment 3•4 years ago
|
||
The severity field is not set for this bug.
:TYLin, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•4 years ago
|
Updated•4 years ago
|
Description
•