use the right TLEventHandlers (#1486)
### Change Type Change the `TLEventHandlers` of `onPointerLeave` to use `onPointerLeave` - [x] `internal` — Any other changes that don't affect the published package (will not publish a new version) ### Test Plan I don't think we need to test something here because it's just a small change that doesn't affect anything; just a type IMO Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
parent
d71d15124c
commit
d6be4bf26a
3 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ export class EditingShape extends StateNode {
|
|||
}
|
||||
}
|
||||
|
||||
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
|
||||
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
|
||||
switch (info.target) {
|
||||
case 'shape': {
|
||||
this.editor.setHoveredId(null)
|
||||
|
|
|
@ -48,7 +48,7 @@ export class Idle extends StateNode {
|
|||
}
|
||||
}
|
||||
|
||||
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
|
||||
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
|
||||
switch (info.target) {
|
||||
case 'shape': {
|
||||
this.editor.setHoveredId(null)
|
||||
|
|
|
@ -26,7 +26,7 @@ export class Idle extends StateNode {
|
|||
}
|
||||
}
|
||||
|
||||
onPointerLeave: TLEventHandlers['onPointerEnter'] = (info) => {
|
||||
onPointerLeave: TLEventHandlers['onPointerLeave'] = (info) => {
|
||||
switch (info.target) {
|
||||
case 'shape': {
|
||||
this.editor.setHoveredId(null)
|
||||
|
|
Loading…
Reference in a new issue