Black Lives Matter. Please consider donating to Black Girls Code today.

Graph shift if update during dragging

Hi there, I have stock data rendered using Candlestick object, and an interval update which happens every 2 sec. What’s bothering me is, if I’m dragging the graph under pan mode, the graph shifts upon interval update. PS, it seems like it shifts the amount that I’ve dragged from the original mouse-down position, like a vector.

I tried to print out the axis range, but it doesn’t update until I release the button.

Thanks in advance~