Skip to content

Commit

Permalink
feat: change zoom bar handle cursor from "pointer" to "ew-resize"
Browse files Browse the repository at this point in the history
  • Loading branch information
hlyang397 committed Aug 14, 2020
1 parent 2b07934 commit 9732c8a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/components/axes/zoom-bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export class ZoomBar extends Component {
const handleBarXDiff = -handleBarWidth / 2;
const handleYBarDiff = (handleHeight - handleBarHeight) / 2;

const ewHandleCursor = "ew-resize";
const displayStyle =
isDataLoading || isNaN(selection[0]) || isNaN(selection[1])
? "none"
Expand Down Expand Up @@ -358,7 +359,7 @@ export class ZoomBar extends Component {
.attr("y", 0)
.attr("width", handleWidth)
.attr("height", handleHeight)
.attr("cursor", "pointer")
.attr("cursor", ewHandleCursor)
.style("display", displayStyle);

// handle-bar
Expand Down Expand Up @@ -391,7 +392,7 @@ export class ZoomBar extends Component {
.attr("y", handleYBarDiff)
.attr("width", handleBarWidth)
.attr("height", handleBarHeight)
.attr("cursor", "pointer")
.attr("cursor", ewHandleCursor)
.style("display", displayStyle);

// Update slider selected area
Expand Down

0 comments on commit 9732c8a

Please sign in to comment.