Skip to content

Commit

Permalink
Fix Issue #710, repair futureMouseDrag. Widget becomes "isMouseOver" …
Browse files Browse the repository at this point in the history
…(onMouseEnter/onMouseExit) before it becomes dragged, in the case the mouse click happens on a new position.
  • Loading branch information
Guillaume Piolat committed Sep 30, 2022
1 parent b33e796 commit 0ce78ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gui/dplug/gui/context.d
Expand Up @@ -247,11 +247,14 @@ nothrow:

final void beginDragging(UIElement element)
{
// Stop an existing dragging operation.
stopDragging();

version(futureMouseDrag)
{
setMouseOver(element);
assert(this.mouseOver is element);
}
stopDragging();
dragged = element;
dragged.onBeginDrag();
}
Expand Down

0 comments on commit 0ce78ef

Please sign in to comment.