From 72a85fdd22be513e9aa7a045ce8d10348f119a9c Mon Sep 17 00:00:00 2001 From: Artur Morys - Magiera Date: Sat, 17 Aug 2024 22:16:12 +0200 Subject: [PATCH] fix: demos onHover showing grab cursor icon at all times (#148) --- pages/dist-demos/bar-floating-horizontal.html | 2 +- pages/dist-demos/bar-floating.html | 2 +- pages/dist-demos/bar-horizontal.html | 2 +- pages/dist-demos/bar-stacked-horizontal.html | 2 +- pages/dist-demos/bar-stacked.html | 2 +- pages/dist-demos/bar.html | 2 +- pages/dist-demos/bubble-x-only.html | 2 +- pages/dist-demos/bubble.html | 2 +- pages/dist-demos/gantt.html | 2 +- pages/dist-demos/line-categorical.html | 2 +- pages/dist-demos/line-dual-y-axis.html | 2 +- pages/dist-demos/line-linear-custom-interaction.html | 2 +- pages/dist-demos/line-linear.html | 2 +- pages/dist-demos/polar.html | 2 +- pages/dist-demos/radar.html | 2 +- pages/dist-demos/scatter.html | 2 +- pages/src/templates/layout.html.ejs | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pages/dist-demos/bar-floating-horizontal.html b/pages/dist-demos/bar-floating-horizontal.html index 4a65c9413..1abbd73c2 100644 --- a/pages/dist-demos/bar-floating-horizontal.html +++ b/pages/dist-demos/bar-floating-horizontal.html @@ -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"; diff --git a/pages/dist-demos/bar-floating.html b/pages/dist-demos/bar-floating.html index 8ed27e182..23b267cc9 100644 --- a/pages/dist-demos/bar-floating.html +++ b/pages/dist-demos/bar-floating.html @@ -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"; diff --git a/pages/dist-demos/bar-horizontal.html b/pages/dist-demos/bar-horizontal.html index bd37d1104..b8833c522 100644 --- a/pages/dist-demos/bar-horizontal.html +++ b/pages/dist-demos/bar-horizontal.html @@ -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"; diff --git a/pages/dist-demos/bar-stacked-horizontal.html b/pages/dist-demos/bar-stacked-horizontal.html index 9bdb8d68a..6b0979596 100644 --- a/pages/dist-demos/bar-stacked-horizontal.html +++ b/pages/dist-demos/bar-stacked-horizontal.html @@ -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"; diff --git a/pages/dist-demos/bar-stacked.html b/pages/dist-demos/bar-stacked.html index aa2ecd77e..99729ba1f 100644 --- a/pages/dist-demos/bar-stacked.html +++ b/pages/dist-demos/bar-stacked.html @@ -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"; diff --git a/pages/dist-demos/bar.html b/pages/dist-demos/bar.html index 2359abcd4..447d2eed4 100644 --- a/pages/dist-demos/bar.html +++ b/pages/dist-demos/bar.html @@ -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"; diff --git a/pages/dist-demos/bubble-x-only.html b/pages/dist-demos/bubble-x-only.html index 1304c238f..ecbc02a09 100644 --- a/pages/dist-demos/bubble-x-only.html +++ b/pages/dist-demos/bubble-x-only.html @@ -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"; diff --git a/pages/dist-demos/bubble.html b/pages/dist-demos/bubble.html index 0ea1029e4..c5399eaa8 100644 --- a/pages/dist-demos/bubble.html +++ b/pages/dist-demos/bubble.html @@ -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"; diff --git a/pages/dist-demos/gantt.html b/pages/dist-demos/gantt.html index c55b71714..c938ee476 100644 --- a/pages/dist-demos/gantt.html +++ b/pages/dist-demos/gantt.html @@ -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"; diff --git a/pages/dist-demos/line-categorical.html b/pages/dist-demos/line-categorical.html index 9fe4ab98d..f716ac4ff 100644 --- a/pages/dist-demos/line-categorical.html +++ b/pages/dist-demos/line-categorical.html @@ -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"; diff --git a/pages/dist-demos/line-dual-y-axis.html b/pages/dist-demos/line-dual-y-axis.html index 2be9ba2c9..79859a24e 100644 --- a/pages/dist-demos/line-dual-y-axis.html +++ b/pages/dist-demos/line-dual-y-axis.html @@ -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"; diff --git a/pages/dist-demos/line-linear-custom-interaction.html b/pages/dist-demos/line-linear-custom-interaction.html index 7922a47c0..b061c5093 100644 --- a/pages/dist-demos/line-linear-custom-interaction.html +++ b/pages/dist-demos/line-linear-custom-interaction.html @@ -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"; diff --git a/pages/dist-demos/line-linear.html b/pages/dist-demos/line-linear.html index 72c09c8bd..f1fec05bb 100644 --- a/pages/dist-demos/line-linear.html +++ b/pages/dist-demos/line-linear.html @@ -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"; diff --git a/pages/dist-demos/polar.html b/pages/dist-demos/polar.html index 45dab458d..cfcca6bb2 100644 --- a/pages/dist-demos/polar.html +++ b/pages/dist-demos/polar.html @@ -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"; diff --git a/pages/dist-demos/radar.html b/pages/dist-demos/radar.html index 0a252a7d0..a16616bb3 100644 --- a/pages/dist-demos/radar.html +++ b/pages/dist-demos/radar.html @@ -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"; diff --git a/pages/dist-demos/scatter.html b/pages/dist-demos/scatter.html index 1e29eeb4f..c9906cf57 100644 --- a/pages/dist-demos/scatter.html +++ b/pages/dist-demos/scatter.html @@ -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"; diff --git a/pages/src/templates/layout.html.ejs b/pages/src/templates/layout.html.ejs index 9f94ca156..dd813dd51 100644 --- a/pages/src/templates/layout.html.ejs +++ b/pages/src/templates/layout.html.ejs @@ -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";