Skip to content

Commit

Permalink
fix: restore zoom feature on time series
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Aug 28, 2024
1 parent 247e22e commit 6c31074
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/TimeSeries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@ function onZoomEnd ({ chart, start, end }) {
}
function onRestoreZoom () {
isZoomed.value = (chartRef.value ? chartRef.value.restorePreviousZoom() : false)
const zoom = (chartRef.value ? chartRef.value.getZoom() : null)
if (zoom) Time.patchRange(zoom)
}
function onResized (size) {
height.value = size.height
Expand Down

0 comments on commit 6c31074

Please sign in to comment.