1
0
mirror of synced 2024-11-12 02:00:52 +01:00

impr: Add short delay before a hover tooltip appears

This commit is contained in:
WerWolv 2024-06-26 20:38:06 +02:00
parent 2132e5adbf
commit e132adad5d

View File

@ -571,7 +571,7 @@ namespace ImGuiExt {
ImGuiID hoveredID = GetHoveredID();
bool result = false;
if (IsItemHovered() && (currTime - lastMoveTime) >= 0.5 && hoveredID == lastHoveredID) {
if (IsItemHovered(ImGuiHoveredFlags_DelayNormal) && (currTime - lastMoveTime) >= 0.5 && hoveredID == lastHoveredID) {
if (!std::string_view(text).empty()) {
const auto textWidth = CalcTextSize(text).x;