-
Notifications
You must be signed in to change notification settings - Fork 365
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Block tooltip when a gesture/popover is active
- Loading branch information
1 parent
6e1f7fe
commit 7ebd6de
Showing
7 changed files
with
149 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
theatre/studio/src/uiComponents/chordial/mousedownActor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {basicFSM} from '@theatre/utils/basicFSM' | ||
|
||
export const mousedownActor = basicFSM<[isDown: boolean], boolean>((t) => { | ||
function toggle(original: boolean) { | ||
t('down', original, ([isDown]) => { | ||
if (isDown !== original) toggle(isDown) | ||
}) | ||
} | ||
|
||
toggle(false) | ||
})({name: 'mouseDownActor'}) |
Oops, something went wrong.
7ebd6de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
theatre-playground – ./
theatre-playground-git-main-theatrejs.vercel.app
theatre-playground-theatrejs.vercel.app
theatre-playground.vercel.app