Increased pointer event range
This commit is contained in:
1 parent
146a646365
commit
5c3f716243
1 file changed
+1
-7
@@ -20,13 +20,7 @@ const PieCenterLabel = ({ value, color, setExpand }) => {
|
|||||||
transform={`translate(${width / 2}, ${height / 2})`}
|
transform={`translate(${width / 2}, ${height / 2})`}
|
||||||
onMouseEnter={() => setExpand(true)}
|
onMouseEnter={() => setExpand(true)}
|
||||||
>
|
>
|
||||||
<circle
|
<circle cx={0} cy={0} r={width / 4} fill="transparent" />
|
||||||
cx={0}
|
|
||||||
cy={0}
|
|
||||||
r={width / 3}
|
|
||||||
fill="transparent"
|
|
||||||
pointerEvents="none"
|
|
||||||
/>
|
|
||||||
<text
|
<text
|
||||||
className="pie-label"
|
className="pie-label"
|
||||||
style={{
|
style={{
|
||||||
|
|||||||
Reference in new issue
Block a user