chartjs / chartjs/Chart.js

Before we get out of the slide offset is getting closed

Open
#11,026 0 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

Actually it should get closed only when we are moving out of the slice

### Current behavior

Its moving when we are hovering on the slice but when we hover its moving out but cursor is inside, slice is moved out and when when move to the cursor to ouside edges of the slice its getting closed as it considering the initial position of the circle and reacting to its intial position even when the slice is moved

![image](https://user-images.githubusercontent.com/118241594/210222237-0b6d8af9-34a4-4a88-aa86-6bfadd12169d.png)

### Reproducible sample

https://jsfiddle.net/9ysjqr0e/12/

### Optional extra steps/info to reproduce

_No response_

### Possible solution

Need to the consider the sliced postion for offset

### Context

I am using it for mobile application when we click on slices sometimes its not working for some places for the major slice also need a suggestion if we can slice the major part by default

### chart.js version

4.3.1

### Browser name and version

Google chrome and mobile applications

### Link to your project

https://jsfiddle.net/9ysjqr0e/12/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.