Gtk2: fixed capturing of mouse with TScrollBar.Patch by August Klein. issue #19761

git-svn-id: trunk@33189 -
This commit is contained in:
zeljko 2011-10-30 20:12:18 +00:00
parent 743ed5a77a
commit d871ad3dc6

View File

@ -1365,7 +1365,8 @@ begin
if not (csDesigning in ACtl.ComponentState) and
not (csCaptureMouse in ACtl.ControlStyle) and
([ssLeft,ssRight,ssMiddle]*ShiftState <> []) and
not (ACtl is TCustomForm) and not DragManager.IsDragging then
not (ACtl is TCustomForm) and not (ACtl is TScrollBar)
and not DragManager.IsDragging then
begin
if (Event^.x < 0) or (Event^.y < 0) or
(Event^.x > ACtl.Width) or (Event^.y > ACtl.Height) then