Mercurial > gemma
changeset 5125:67efc7e4df4b
attach zoomevent to cursor
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 27 Mar 2020 09:34:05 +0100 |
parents | e21cbb9768a2 |
children | ee559cd0731f |
files | client/src/components/TimeSlider.vue |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/TimeSlider.vue Wed Mar 25 18:10:02 2020 +0100 +++ b/client/src/components/TimeSlider.vue Fri Mar 27 09:34:05 2020 +0100 @@ -286,7 +286,7 @@ }); // Create cursor to indicate to the selected time - svg + const cursor = svg .append("rect") .attr("class", "line") .attr("id", "scrubber") @@ -301,6 +301,7 @@ svg.select(".line").attr("cursor", "e-resize"); }) .call(drag); + cursor.call(zoom); }, getScale() { return d3