Ver Fonte

fix imageslider onitemclick not fired when IsCanDrag = True

KngStr há 5 anos atrás
pai
commit
3d73a9ac78
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      FMX.ImageSlider.pas

+ 1 - 1
FMX.ImageSlider.pas

@@ -386,7 +386,7 @@ var
   PrevPage: Integer;
 begin
   inherited;
-  if (not FIsMove) and FStartDrag then
+  if (not FIsMove) and (FStartDrag or not IsCanDrag) then
   begin
     if FIsTimer then
       FTimer.Enabled := True;