Skip to content

Commit

Permalink
Pull request #5382: [DXCF-5697] [Adaptive] - When changing zoom on th…
Browse files Browse the repository at this point in the history
…e Y axis, a menu pops up in adaptive mode // init

Merge in DXCHARTS/dxchart5 from bugfix/DXCF-5697-adaptive-when-changing-zoom-on-the-y-axis-a-menu-pops-up-in-adaptive-mode to master

* commit 'd353187ad89418389b71b1545b96f4ca8ace45f9':
  [DXCF-5697] [Adaptive] - When changing zoom on the Y axis, a menu pops up in adaptive mode // remove copyright header
  [DXCF-5697] [Adaptive] - When changing zoom on the Y axis, a menu pops up in adaptive mode // init

GitOrigin-RevId: 22205efc45455af23ffb34fa700aaa514438142d
  • Loading branch information
Keelaro1 authored and dxcity committed Jan 13, 2025
1 parent 4797cac commit 866771c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/chart/components/y_axis/y-axis-scale.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export class YAxisScaleHandler extends ChartBaseElement {
lastYHeight: Unit = 0;
lastYPxHeight: Pixel = 0;

private dragNDropYComponent: DragNDropYComponent | undefined;

private dblClickCallback: () => void;

private touches: TouchList | undefined;
Expand Down Expand Up @@ -73,7 +75,15 @@ export class YAxisScaleHandler extends ChartBaseElement {
},
);
this.addChildEntity(dragNDropYComponent);
this.dragNDropYComponent = dragNDropYComponent;
}
}

public isDragging(): boolean {
if (!this.dragNDropYComponent) {
return false;
}
return Math.abs(this.dragNDropYComponent.draggedPixels) > 0;
}

protected doActivate(): void {
Expand Down

0 comments on commit 866771c

Please sign in to comment.