mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:49:18 +02:00
Qt: fixed bug when control doesn't have csCaptureMouse, but mouse is higher than width or height of control.
git-svn-id: trunk@30153 -
This commit is contained in:
parent
67aec0c9c4
commit
7674b680b6
@ -2975,7 +2975,8 @@ begin
|
||||
|
||||
if not (csCaptureMouse in LCLObject.ControlStyle) and
|
||||
(QApplication_mouseButtons() <> QtNoButton) and
|
||||
((MousePos.X < 0) or (MousePos.Y < 0)) then
|
||||
(((MousePos.X < 0) or (MousePos.Y < 0)) or
|
||||
((MousePos.X > getWidth) or (MousePos.Y > getHeight))) then
|
||||
begin
|
||||
if not QWidget_underMouse(Widget) then
|
||||
exit;
|
||||
|
Loading…
Reference in New Issue
Block a user