Closed Bug 1734257 Opened 4 years ago Closed 4 years ago

client X and client Y badly calculated on SVG

Categories

(Core :: SVG, defect)

Firefox 94
defect

Tracking

()

RESOLVED INCOMPLETE

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.

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.

Component: Untriaged → SVG
Product: Firefox → Core

I don't think we'll be able to get very far unless you can provide a minimal testcase.

The severity field is not set for this bug.
:TYLin, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(aethanyc)
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(aethanyc)
You need to log in before you can comment on or make changes to this bug.