mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
[Core] Fix onHover reference not being reset for identical IDs between frames
This commit is contained in:
parent
cbb50267da
commit
a9e94e3be0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2
clay.h
2
clay.h
|
@ -1670,6 +1670,8 @@ Clay_LayoutElementHashMapItem* Clay__AddHashMapItem(Clay_ElementId elementId, Cl
|
|||
hashItem->generation = context->generation + 1;
|
||||
hashItem->layoutElement = layoutElement;
|
||||
hashItem->debugData->collision = false;
|
||||
hashItem->onHoverFunction = NULL;
|
||||
hashItem->hoverFunctionUserData = 0;
|
||||
} else { // Multiple collisions this frame - two elements have the same ID
|
||||
context->errorHandler.errorHandlerFunction(CLAY__INIT(Clay_ErrorData) {
|
||||
.errorType = CLAY_ERROR_TYPE_DUPLICATE_ID,
|
||||
|
|
Loading…
Reference in a new issue