You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to capture the Event parameter when someone double clicks. Basically to know that a Note has been double clicked and not a Handle.
Realised that this will work, except after when you drag the Note around. The Event e (like the example code below), would be switched to become props instead. Something like the log below:
<EditableAnnotation
x={150}
y={170}
dy={117}
dx={162}
color={"#9610ff"}
title={"Annotations :)"}
label={"Longer text to show text wrapping"}
events={ {
onDoubleClick: ( props, state, e ) => {
console.log( props, state, e ); // e will not become an event after dragging the Note
}
} }
>
<ConnectorLine />
<Note
align={"middle"}
orientation={"topBottom"}
bgPadding={20}
padding={15}
titleColor={"#59039c"} />
</EditableAnnotation>
```
The text was updated successfully, but these errors were encountered:
I'm trying to capture the Event parameter when someone double clicks. Basically to know that a Note has been double clicked and not a Handle.
Realised that this will work, except after when you drag the Note around. The Event e (like the example code below), would be switched to become props instead. Something like the log below:
First try
After dragging the Note
The text was updated successfully, but these errors were encountered: