mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:49:44 +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,8 +4561,7 @@ end;
|
||||
function SubtractScoll(AWidget: PGtkWidget; APosition: TPoint): TPoint;
|
||||
begin
|
||||
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
|
||||
begin
|
||||
dec(Result.x, Round(gtk_scrolled_window_get_hadjustment(PGtkScrolledWindow(AWidget))^.value));
|
||||
|
Loading…
Reference in New Issue
Block a user