impr: Add short delay before a hover tooltip appears
This commit is contained in:
parent
2132e5adbf
commit
e132adad5d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user