-
-
Notifications
You must be signed in to change notification settings - Fork 10
Feature request: Allow collection view that can both scrolling vertically and horizontally #155
Comments
@superk589 So what would you propose that we do here? |
As you mentioned, maybe it is not what this framework should do. I’ll try some ideas outside the framework first. |
I think it kinda has to force the scroll views to scroll-by-proxy than to do the actual scrolling themselves. You could easily get into a situation of recursion if the scroll view starts scrolling and the parent scroll view tries to do the same. I think we would have to reconsider the layout algorithm considerably if we want to lift this "limitation". I think the only case that we don't currently cover is the case where you have a scroll view that does scroll in multiple directions, I have yet to implement such a thing yet… hence the reason for me never considering this as a limitation and a requirement. |
Tried an idea and it works for my use case.
I think scroll-by-proxy is a little complicated and hard to maintain. It's not worth to do that. |
@superk589 It is complex I can give you that, if we can figure out a better way of doing it I'm all for implementing that :) If you have any ideas, feel free to make a PR and we can discuss the change. |
@zenangst |
I can hardly say this is a reasonable use case. But this is what I am dealing with.
There is a collection view, like an excel table, which can scroll both vertically and horizontally, is inside a FamilyViewController. But with
isDirectionalLockEnabled
, it can only scroll at one direction at one time.Because FamilyScrollView has code lines below:
The "excel" collection view always has it's
scrollView.isScrollEnabled
on.It sometimes freezes the whole FamilyViewController vertically, when it fills the whole screen and can only scroll horizontally. The gesture can not pass to the container scroll view below.
The text was updated successfully, but these errors were encountered: