Problem with panning
Posted: Wed Aug 01, 2018 1:45 pm
I'm a newbie to programming, so forgive me if the question is silly.
I have graph which I zoom(using mouse wheels) and pan(using left mouse). I want to stop the panning, if it goes bellow 0 on time scale(X-axis).
I used "PannedXYEventArgs" and "BeforePanningXYEventArgs event. That stopped the panning bellow 0.
But it is zooming instead when I pan near zero(I expect it to not pan). It is supposed to "only pan" with left mouse button. What am i missing?
I have graph which I zoom(using mouse wheels) and pan(using left mouse). I want to stop the panning, if it goes bellow 0 on time scale(X-axis).
I used "PannedXYEventArgs" and "BeforePanningXYEventArgs event. That stopped the panning bellow 0.
But it is zooming instead when I pan near zero(I expect it to not pan). It is supposed to "only pan" with left mouse button. What am i missing?