Skip to content

useChartPressState's active index no longer aligns with centre of touch since 41.20.2 #640

@Upsilon-Iridani

Description

@Upsilon-Iridani

Prerequisites

  • I have searched the open issues to make sure I'm not opening a duplicate issue
  • I have read through the docs before asking a question
  • I am using the latest version of victory-native-xl

Describe Your Environment

What version of victory-native-xl are you using? (can be found by running npm list --depth 0 victory-native)
I tried to upgrade form 41.20.1 -> 41.20.2

What version of React and React Native are you using?
0.81.4
What version of Reanimated and React Native Skia are you using?

    "react-native-reanimated": "4.1.3",
    "@shopify/react-native-skia": "2.2.12",

Are you using Expo or React Native CLI?
expo

What platform are you on? (e.g., iOS, Android)
iOS

Describe the Problem

I'm using useChartPressState to highlight a bar graph.

Expected behavior: [What you expect to happen]
In 41.20.1 useChartPressState's active index aligned with the centre of the touch input.

Actual behavior: [What actually happens]
In 41.20.2 useChartPressState's active index aligns with the right most end of the touch input.

Additional Information

If I have time to create a repro I will, right now I have a pressing deadline 😅

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions