mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Stop limiting getDecimalForPixel to chart area (#6608)
This commit is contained in:
parent
29de4aff21
commit
11883aa59d
@ -929,7 +929,7 @@ var Scale = Element.extend({
|
||||
|
||||
getDecimalForPixel: function(pixel) {
|
||||
var decimal = (pixel - this._startPixel) / this._length;
|
||||
return Math.min(1, Math.max(0, this._reversePixels ? 1 - decimal : decimal));
|
||||
return this._reversePixels ? 1 - decimal : decimal;
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user