chartjs / chartjs-plugin-zoom

Zoom and pan plugin for Chart.js
MIT License
598 stars 327 forks source link

pan jump if using x axis of type time #829

Open firebird631 opened 3 months ago

firebird631 commented 3 months ago

I have a candle stick chart, with temporal series, I use type: "time". During pan, after a number of move of the mouse, the pan jump or move continuously on the same side even if I move the pointer on the other direction.

I have tried lot of thing, the issue disappear if I use a "linear" type for x but in that case I have not the desired tick and formatting.

I have set limits on x correctly.

It seems worst when streaming data but it could occurs even when there is not data update.

The time type seems to modify something that interact in the wrong way during a pan.

kurkle commented 2 weeks ago

Would you be able to create a minimal reproduction of the issue?