MagicFoundation / Alcinoe

Alcinoe Component Library For Delphi. Full opengl video player, WebRTC delphi wrapper, native ios/android TEdit, Improuved firemonkey controls, Firebase cloud messaging, Android/ios facebook sdk login, Json/Bson Parser, ImageMagick wrapper, MongoDb client And much more
Apache License 2.0
996 stars 220 forks source link

scrollengine in TALTabContol #351

Closed gonzzzales closed 3 weeks ago

gonzzzales commented 1 month ago

Hi @Zeus64 !!! Please two words about properties in ScrollEngine of TALTabControl, how to increase swipe sensitivity, how to use ScrollEngine.DragResistanceFactor ScrollEngine.OverflingDistance ScrollEngine.TouchSlop ScrollEngine.TimerInterval

maurobotta commented 1 month ago

Yes, i'm testing, too, now.

I need extra info of ScrollEngine with ListView...

Zeus64 commented 1 month ago

regarding :

ScrollEngine.DragResistanceFactor

A multiplier applied during drag operations to simulate resistance. A value
of 1 implies normal drag behavior, while values below 1 introduce increased
resistance, making the drag feel heavier.

ScrollEngine.OverflingDistance

It's the Max distance to overfling for edge effects. you don't need it with TALTabControl

ScrollEngine.TouchSlop

Distance a touch can wander before we think the user is scrolling. Better to not touch it if the TalTabControl is inside a scrollbox

ScrollEngine.TimerInterval

Specifies the duration between offset recalculations (ie for the animation). We don't use
TimerInterval for Android/iOS since we utilize DisplayLink and JChoreographer
gonzzzales commented 1 month ago

@Zeus64 Thanks a lot!!!