feathersui-starling icon indicating copy to clipboard operation
feathersui-starling copied to clipboard

Scroller: specify exactly which edges may be elastic (hasElasticEdges currently always affects all edges)

Open GV3 opened this issue 8 years ago • 1 comments

Hi Josh,

I'll go straight to the prominent real world example, so that you see a real scenario where this could be useful.

Instagram > Chat > Single Conversation > Pull the message item to the left

I know that in this specific example the message items can be pulled to the left and not the whole list. But I'm sure more than one would profit from being able to decide what border/edge should be Elastic, and if we want to be fancy, be able to set different elasticity factors to each edge.

I imagine the code like this:

hasElasticEdges = true; // valid still hasElasticEdges = false; // valid still hasElasticEdges = RealtivePosition.TOP + ',' + RealtivePosition.BOTTOM + ',' + RelativePosition.RIGHT; // New

Thanks for considering it

GV3 avatar Jan 07 '17 19:01 GV3

I sent a message to my wife to test, and she said the same gesture is available in the iOS Messages app. :smile:

joshtynjala avatar Jan 07 '17 20:01 joshtynjala