vertical drag fix
This commit is contained in:
parent
171521cf75
commit
2589a1db13
1 changed files with 25 additions and 4 deletions
|
|
@ -189,8 +189,18 @@ class ConfluenceChart {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
rightPriceScale: { borderVisible: false },
|
rightPriceScale: { borderVisible: false },
|
||||||
handleScale: { pinch: false },
|
handleScale: {
|
||||||
handleScroll: { horzTouchDrag: false, vertTouchDrag: false },
|
mouseWheel: true,
|
||||||
|
pinch: false,
|
||||||
|
axisPressedMouseMove: true,
|
||||||
|
axisDoubleClickReset: true,
|
||||||
|
},
|
||||||
|
handleScroll: {
|
||||||
|
mouseWheel: true,
|
||||||
|
pressedMouseMove: true,
|
||||||
|
horzTouchDrag: false,
|
||||||
|
vertTouchDrag: false,
|
||||||
|
},
|
||||||
// Every price-bearing series shares this scale. A second autoscaled price
|
// Every price-bearing series shares this scale. A second autoscaled price
|
||||||
// axis can place the same numeric price at a different y, which makes
|
// axis can place the same numeric price at a different y, which makes
|
||||||
// daily context look comparable to intraday price when it is not.
|
// daily context look comparable to intraday price when it is not.
|
||||||
|
|
@ -796,6 +806,7 @@ class ConfluenceChart {
|
||||||
this.renderAnchorHandles();
|
this.renderAnchorHandles();
|
||||||
this.renderComments();
|
this.renderComments();
|
||||||
this.renderContextLabels();
|
this.renderContextLabels();
|
||||||
|
this.updateCurrentPrice(this.lastCurrentPrice);
|
||||||
};
|
};
|
||||||
this.touchEndListener = event => {
|
this.touchEndListener = event => {
|
||||||
if (event.touches.length < 2 && this.touchTwo) {
|
if (event.touches.length < 2 && this.touchTwo) {
|
||||||
|
|
@ -1225,8 +1236,18 @@ class ConfluenceChart {
|
||||||
armTool(tool) {
|
armTool(tool) {
|
||||||
this.armedTool = tool;
|
this.armedTool = tool;
|
||||||
this.chart.applyOptions({
|
this.chart.applyOptions({
|
||||||
handleScroll: tool ? false : { horzTouchDrag: false, vertTouchDrag: false },
|
handleScroll: tool ? false : {
|
||||||
handleScale: tool ? false : { pinch: false },
|
mouseWheel: true,
|
||||||
|
pressedMouseMove: true,
|
||||||
|
horzTouchDrag: false,
|
||||||
|
vertTouchDrag: false,
|
||||||
|
},
|
||||||
|
handleScale: tool ? false : {
|
||||||
|
mouseWheel: true,
|
||||||
|
pinch: false,
|
||||||
|
axisPressedMouseMove: true,
|
||||||
|
axisDoubleClickReset: true,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
this.hideSnapDot();
|
this.hideSnapDot();
|
||||||
this.chartEl.classList.toggle('armed', Boolean(tool));
|
this.chartEl.classList.toggle('armed', Boolean(tool));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue