mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-31 07:26:43 +00:00
拖拽按钮鼠标样式微调
This commit is contained in:
@@ -26,7 +26,7 @@ export default function Live2D() {
|
||||
}, [theme])
|
||||
|
||||
function handleClick() {
|
||||
if (BLOG.WIDGET_PET_SWITCH_THEME) {
|
||||
if (JSON.parse(BLOG.WIDGET_PET_SWITCH_THEME)) {
|
||||
switchTheme()
|
||||
}
|
||||
}
|
||||
@@ -35,5 +35,9 @@ export default function Live2D() {
|
||||
return <></>
|
||||
}
|
||||
|
||||
return <canvas id="live2d" className='cursor-pointer' width="280" height="250" onClick={handleClick} alt='切换主题' title='切换主题' />
|
||||
return <canvas id="live2d" width="280" height="250" onClick={handleClick}
|
||||
className="cursor-grab"
|
||||
onMouseDown={(e) => e.target.classList.add('cursor-grabbing')}
|
||||
onMouseUp={(e) => e.target.classList.remove('cursor-grabbing')}
|
||||
/>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user