Various improvements

This commit is contained in:
Ilya Laktyushin
2022-04-24 06:30:30 +04:00
parent c929cce94f
commit b9f141aae4
10 changed files with 279 additions and 151 deletions

View File

@@ -266,6 +266,7 @@ const CGFloat TGPhotoEditorToolsLandscapePanelSize = TGPhotoEditorToolsPanelSize
_portraitCollectionView.toolsDataSource = self;
_portraitCollectionView.interactionBegan = _interactionBegan;
_portraitCollectionView.interactionEnded = _interactionEnded;
_portraitCollectionView.canCancelContentTouches = true;
[_portraitToolsWrapperView addSubview:_portraitCollectionView];
if (!TGIsPad())
@@ -278,6 +279,7 @@ const CGFloat TGPhotoEditorToolsLandscapePanelSize = TGPhotoEditorToolsPanelSize
_landscapeCollectionView.toolsDataSource = self;
_landscapeCollectionView.interactionBegan = _interactionBegan;
_landscapeCollectionView.interactionEnded = _interactionEnded;
_landscapeCollectionView.canCancelContentTouches = true;
[_landscapeToolsWrapperView addSubview:_landscapeCollectionView];
}