Macro got renamed in IMGUI_VERSION_NUM 18993. Technically old ImFloor()/IM_FLOOR() was a trunc(). New ImFloor() is an actual floor(), works with signed value, so good for position.
* Added optional parameters to Drag.. functions to query state of items: clicked, hovered, held
See also #506
* Updated click/hover/held code
* Added demo
* DragRect is now report state of the entire rect
* Fix DragRect interaction; improve demo; some preferential changes
* Added held state handling for the DragRect rectangle
---------
Co-authored-by: epezent <epezent16@gmail.com>
* Fully functional legend scrolling
* refactor legend scroll capture
* remove ImPlotFlags_NoChild scroll capturing in favor of ImGui::SetKeyOwner
* change scroll capture behavior to only capture if scroll can be consumed
* rev version, add note about removal of ImPlotFlags_NoChild
Likely this was pulled from SplitterBehavior(), where it made senses but only given the possibility user would call SetItemAllowOverlap() after.
AFAIK after debugging the code I _think_ this has no meaningful side-effect. Also removed same thing in Tables code in core lib.
Flag added in https://github.com/epezent/implot/pull/203/commits/4a1ee88c13d4718d6a5099a372dc7ca8568b6a7f.
In the case this is a thread_local variable it is best to avoid fetching too many times.
Either way local caching tends to be beneficial as a non-local variable would often be fetched multiple times.