Fix litegraph grab cursor style (#2097)

This commit is contained in:
Chenlei Hu
2024-12-30 10:50:53 -05:00
committed by GitHub
parent 5218024395
commit 6dce285210
4 changed files with 8 additions and 21 deletions

View File

@@ -452,6 +452,9 @@ test.describe('Canvas Interaction', () => {
expect(await getCursorStyle()).toBe('default')
await comfyPage.page.mouse.down()
expect(await getCursorStyle()).toBe('grabbing')
// Move mouse should not alter cursor style.
await comfyPage.page.mouse.move(10, 20)
expect(await getCursorStyle()).toBe('grabbing')
await comfyPage.page.mouse.up()
expect(await getCursorStyle()).toBe('default')