Re: Embedded Collection View Controller scrolling issue
Re: Embedded Collection View Controller scrolling issue
- Subject: Re: Embedded Collection View Controller scrolling issue
- From: Doug Hill <email@hidden>
- Date: Mon, 26 Jun 2017 14:08:25 -0700
Following up…
I had some people mention the inherent difficulties of
scroller-within-a-scroller implementations. After some more testing I notice
that all taps are being ignored by subviews in the scroller as I scroll content
up. That is, the newly displayed content will now not respond to any taps.
A long shot I know, but any ideas on how to debug this before going through the
TSI route? I'm sure that has to be some techniques for figuring this out.
Doug Hill
https://github.com/djfitz/SFFontFeatures
<https://github.com/djfitz/SFFontFeatures>
> On Jun 19, 2017, at 11:45 PM, Doug Hill <email@hidden> wrote:
>
> Hello Quincey,
>
> First, I should have originally made clear this is iOS, apologies. Also, to
> clarify, I am talking about the drag-scroll gesture, which would be the Pan
> gesture.
>
> The scroller-within-a-scroller is definitely more complex but I've usually
> made them work in previous view controllers I've developed. Like you, I don't
> really have a great idea of what is happening under the hood in these various
> UIScrollviews. Or even a good idea how to debug what seems like lower-level
> stuff.
> Thinking about it more, I might look into priorities of the gesture
> recognizers, since this sounds like it could be related. Otherwise, I'm still
> looking for other ways to track this down.
>
> Thanks again.
>
> Doug Hill
>
>
>> On Jun 19, 2017, at 11:29 PM, Quincey Morris
>> <email@hidden> wrote:
>>
>> On Jun 19, 2017, at 16:22 , Doug Hill <email@hidden
>> <mailto:email@hidden>> wrote:
>>>
>>> The embedded collection view will only scroll if I drag on the area of the
>>> collection view that is originally visible.
>>
>> Can you clarify this a bit? Are you talking about the autoscrolling that
>> happens when you drag-select, or scrolling that happens when you use a
>> scroll gesture on a trackpad? If you click on one of the
>> previously-hidden-but-now-exposed rows, then try to drag it as a separate
>> step, does the scroll happen?
>>
>> I’d assume the problem arises because you have a scroll view within a scroll
>> view, and each scroll has installed a pan gesture recognizer. The recognizer
>> may be capturing the visibleRect of the scrolled view, and when you scroll
>> the outer view, there may not be anything to tell the inner view that its
>> visibleRect has changed.
>>
>> This is all pretty moot, though. Even if that’s the explanation, I can’t
>> think of anything you can do about it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden