summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/ITiledRenderable.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/ITiledRenderable.hxx b/include/vcl/ITiledRenderable.hxx
index 9b0e7dbe8e3a..b95ac6386829 100644
--- a/include/vcl/ITiledRenderable.hxx
+++ b/include/vcl/ITiledRenderable.hxx
@@ -120,6 +120,12 @@ public:
break;
case VclEventId::WindowMouseButtonUp:
pLOKEv->mpWindow->LogicMouseButtonUp(pLOKEv->maMouseEvent);
+
+ // sometimes MouseButtonDown captures mouse and starts tracking, and VCL
+ // will not take care of releasing that with tiled rendering
+ if (pLOKEv->mpWindow->IsTracking())
+ pLOKEv->mpWindow->EndTracking(TrackingEventFlags::DontCallHdl);
+
break;
case VclEventId::WindowMouseMove:
pLOKEv->mpWindow->LogicMouseMove(pLOKEv->maMouseEvent);