Skip to content

Commit

Permalink
fix: demos onHover showing grab cursor icon at all times (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
artus9033 authored Aug 17, 2024
1 parent fe88ce8 commit 72a85fd
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pages/dist-demos/bar-floating-horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bar-floating.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bar-horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bar-stacked-horizontal.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bar-stacked.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bar.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bubble-x-only.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/bubble.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/gantt.html
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/line-categorical.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/line-dual-y-axis.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/line-linear-custom-interaction.html
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/line-linear.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/polar.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/radar.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/dist-demos/scatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down
2 changes: 1 addition & 1 deletion pages/src/templates/layout.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
const point = e.chart.getElementsAtEventForMode(
e,
e.chart.options.interaction.mode,
{ intersect: false },
{ intersect: true },
false,
);
if (point.length) e.native.target.style.cursor = "grab";
Expand Down

0 comments on commit 72a85fd

Please sign in to comment.