Hi,
I know that Figma emitted events so that developers can listen to some of the event that Figma notifies, but how do I know if the prototype is presenting the last frame?
Thank You!
Hi,
I know that Figma emitted events so that developers can listen to some of the event that Figma notifies, but how do I know if the prototype is presenting the last frame?
Thank You!
Best answer by tank666
Figma recently updated the documentation for embeds.
https://www.figma.com/developers/embed#:~:text=Events%20emitted%20from%20the%20embed
Store the nodeId
value of the last frame and compare it with the presentedNodeId
value that is available in the event message data with the PRESENTED_NODE_CHANGED
type. Or with targetNodeId
in a message with the MOUSE_PRESS_OR_RELEASE
type.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.