reddit-swiftui icon indicating copy to clipboard operation
reddit-swiftui copied to clipboard

Blue Selection trigged when List (Blur) Selection expected

Open carson-katri opened this issue 5 years ago • 2 comments

NavigationLink and List selection state seem to be overlapping.

There are two ways this happens:

    • select a post
    • see the post now has a grey selected background
    • tap section header
    • see the selected post now has a blue selected background
    • all consecutive selections will have a blue background as well
  1. Click on the edge of the list item (outside the text or images)

Perhaps make the click area fill the space so that clicking on the edge won't cause a selection.

carson-katri avatar Jun 08 '20 22:06 carson-katri

Screen Shot 2020-07-27 at 12 27 12 PM

@carson-katri Is this the issue you described? Seems like highlighting is stuck on first selection on the List I make and subsequent selections of topics aren't highlighted as seen.

Can you please suggest any starting point to look into this issue, I will try fixing this.

srinikhil-07 avatar Jul 27 '20 07:07 srinikhil-07

@Nikhil0487 I'd start in PostList.swift. There you'll see the code that handles the selection state for both NavigationLink and List. I believe the issue is that they both have selection states independent from one another, which is leading to issues with both.

carson-katri avatar Jul 27 '20 13:07 carson-katri