Browse Source

fix imageslider onitemclick not fired when IsCanDrag = True

KngStr 5 năm trước cách đây
mục cha
commit
3d73a9ac78
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;