Skip to content

Commit

Permalink
fix: use correct expression functions to pan/zoom symlog scales (#7158)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvind authored Jan 6, 2021
1 parent 51e9192 commit ebb8e27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compile/selection/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ function onDelta(
? 'panLinear'
: scaleType === 'log'
? 'panLog'
: scaleType === 'symlog'
? 'panSymlog'
: scaleType === 'pow'
? 'panPow'
: 'panLinear';
Expand Down
2 changes: 2 additions & 0 deletions src/compile/selection/zoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ function onDelta(
? 'zoomLinear'
: scaleType === 'log'
? 'zoomLog'
: scaleType === 'symlog'
? 'zoomSymlog'
: scaleType === 'pow'
? 'zoomPow'
: 'zoomLinear';
Expand Down

0 comments on commit ebb8e27

Please sign in to comment.