aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-ui-common/components/charts/AdvancedTimeline.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-ui-common/components/charts/AdvancedTimeline.tsx')
-rw-r--r--server/sonar-ui-common/components/charts/AdvancedTimeline.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-ui-common/components/charts/AdvancedTimeline.tsx b/server/sonar-ui-common/components/charts/AdvancedTimeline.tsx
index 7357f2479a4..0a9bd4125d0 100644
--- a/server/sonar-ui-common/components/charts/AdvancedTimeline.tsx
+++ b/server/sonar-ui-common/components/charts/AdvancedTimeline.tsx
@@ -1,6 +1,6 @@
/*
- * Sonar UI Common
- * Copyright (C) 2019-2020 SonarSource SA
+ * SonarQube
+ * Copyright (C) 2009-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
@@ -205,6 +205,7 @@ export default class AdvancedTimeline extends React.PureComponent<Props, State>
const parentBbox = event.currentTarget.getBoundingClientRect();
const mouseXPos = (event.pageX - parentBbox.left) / parentBbox.width;
const xRange = xScale.range();
+
const speed = event.deltaMode
? (25 / event.deltaMode) * this.props.zoomSpeed
: this.props.zoomSpeed;