Skip to content

Commit

Permalink
disable mouse wheel for zooming in directory mode
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jan 24, 2024
1 parent e35e451 commit 1814ecf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/chronomaps/src/app/time-line/time-line.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ export class TimeLineComponent implements OnInit, OnChanges, AfterViewInit {
.append('svg')
.attr('width', '100%')
.attr('height', '100%')
.call(this.zoomBehaviour);
.call(this.zoomBehaviour)
.call((selection) => this.hoverable ? selection : selection.on('wheel.zoom', null));
this.svg.append('rect')
.attr('transform', `translate(0, ${this.HEIGHT - this.TEXT_HEIGHT})`)
.attr('width', this.WIDTH)
Expand Down

0 comments on commit 1814ecf

Please sign in to comment.