mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 03:59:31 +02:00
gtk: apply scroll subtraction only for widgets with embedded scroll area like TCustomForm
git-svn-id: trunk@20181 -
This commit is contained in:
parent
9eaaa681d2
commit
20199f3f18
@ -4561,7 +4561,6 @@ end;
|
|||||||
function SubtractScoll(AWidget: PGtkWidget; APosition: TPoint): TPoint;
|
function SubtractScoll(AWidget: PGtkWidget; APosition: TPoint): TPoint;
|
||||||
begin
|
begin
|
||||||
Result := APosition;
|
Result := APosition;
|
||||||
if not GTK_IS_SCROLLED_WINDOW(AWidget) then
|
|
||||||
AWidget := gtk_object_get_data(PGTKObject(AWidget), odnScrollArea);
|
AWidget := gtk_object_get_data(PGTKObject(AWidget), odnScrollArea);
|
||||||
if GTK_IS_SCROLLED_WINDOW(AWidget) then
|
if GTK_IS_SCROLLED_WINDOW(AWidget) then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user