Skip to content

Brush is movement is incorrect when mouse is moved outside of bounds #6279

Description

@nerdyman

What is the current behavior?

  1. Take the brush handle and move it the beyond the start or end of the brush
  2. Move the handle back in
  3. Brush position is now offset by how far out of bounds you went
recharts-brush-bounds-issue.mp4

What is the expected behavior?

The brush handle only starts moving back when the mouse meets the start or end of the brush again.

Please provide a demo of the problem in a sandbox

https://recharts.org/en-US/examples/BrushBarChart

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

  • Recharts v3
  • Chrome, Safari and Firefox
  • macOS

Seems like a standard client bounding box issue, happy to pick this up!

Metadata

Metadata

Labels

bugGeneral bug label

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions