зеркало из https://github.com/DeGsoft/maui-linux.git
[iOS] Tapping on ListView with two fingers should not crash (#379)
* Tapping on ListView with two fingers should not crash * Revert "Tapping on ListView with two fingers should not crash" This reverts commit 0b0752f3cfdbb1c29678d75bd18c5a00e564d77b. * code without refactoring * moving up selector check
This commit is contained in:
Родитель
7870aefc68
Коммит
9a5dab9424
|
@ -661,8 +661,10 @@ namespace Xamarin.Forms.Platform.iOS
|
|||
{
|
||||
var selector = (SelectGestureRecognizer)recognizer;
|
||||
|
||||
var table = (UITableView)recognizer.View;
|
||||
if (selector._lastPath == null)
|
||||
return;
|
||||
|
||||
var table = (UITableView)recognizer.View;
|
||||
if (!selector._lastPath.Equals(table.IndexPathForSelectedRow))
|
||||
table.SelectRow(selector._lastPath, false, UITableViewScrollPosition.None);
|
||||
table.Source.RowSelected(table, selector._lastPath);
|
||||
|
|
Загрузка…
Ссылка в новой задаче