We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51e956f commit ffc1577Copy full SHA for ffc1577
1 file changed
js/data_object.js
@@ -124,8 +124,8 @@ const dataObject = class {
124
};
125
const smoothing = compositeDataObj.smoothing === null ?
126
self.globalSettings.smoothing : compositeDataObj.smoothing,
127
- bpShift = compositeDataObj.bpShift === null ?
128
- self.globalSettings.bpShift : compositeDataObj.bpShift;
+ bpShift = Math.abs(compositeDataObj.bpShift === null ?
+ self.globalSettings.bpShift : compositeDataObj.bpShift);
129
xmin = Math.min(xmin, compositeDataObj.xmin - bpShift);
130
xmax = Math.max(xmax, compositeDataObj.xmax + bpShift);
131
if (!compositeDataObj.hideSense) {
0 commit comments