HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

Fixed an off-by-one error in boundX #248

Open Flati opened 10 years ago

Flati commented 10 years ago

There was an "off-by-one" error in the boundX function, under the selection.js file. This means that if you have a selection area of width 800, you could never select the 800th pixel to the right. When you select the whole thing (either by code or by mouse dragging) the whole select area would be highlighted, but the selection message would read: 0px to 799px selected.