mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(web/menu): radial menu onHover
This commit is contained in:
@@ -97,6 +97,8 @@ const RadialMenu: React.FC = () => {
|
||||
transform={`rotate(-${index * pieAngle} 175 175)`}
|
||||
className={classes.sector}
|
||||
onClick={() => fetchNui('radialClick', index)}
|
||||
onMouseEnter={() => fetchNui('radialHover', { index, entered: true })}
|
||||
onMouseLeave={() => fetchNui('radialHover', { index, entered: false })}
|
||||
>
|
||||
<path
|
||||
d={`M175.01,175.01 l175,0 A175.01,175.01 0 0,0 ${175 + 175 * Math.cos(-degToRad(pieAngle))}, ${
|
||||
|
||||
Reference in New Issue
Block a user