This fixes an issue that was found by gentilkiwi. I added bounds checking to the marker placing code. I also modified it to run only when a left/right mouse click was made, instead of doing all the math every time the Plot::MouseMoveEvent() function was called and then only applying it if there was a mouse click.
This fixes an issue that was found by
gentilkiwi
. I added bounds checking to the marker placing code. I also modified it to run only when a left/right mouse click was made, instead of doing all the math every time thePlot::MouseMoveEvent()
function was called and then only applying it if there was a mouse click.