简体   繁体   English

delphi / firemonkey:如何制作动态滚动?

[英]delphi / firemonkey: how to make a kinetic scroll?

I m under delphi and firemonkey. 我在delphi和firemonkey下。 i manage myself the scroll via the ongesture event. 我通过ongesture事件来管理滚动。 i would like to add something like a "kinetic energy" effect to the scroll. 我想向滚动添加类似“动能”效果的东西。

for exemple you put your finger on the bottom of the screen and you fastly move it to the top and removing it from the screen. 例如,您将手指放在屏幕底部,然后快速将其移至顶部并从屏幕上移开。 the result will be that the screen will scroll much much more than where you remove your finger, like you gave some kinetic energy to the scroll. 结果是屏幕将比您移开手指的地方滚动得多,就像您为滚动提供了一些动能一样。 on the other way if you don't remove you finger from the screen at the end then you don't give any kinetic energy to the scroll. 另一方面,如果您最后没有从屏幕上移开手指,则不会为滚动提供任何动能。

any idea how to do this ? 任何想法如何做到这一点?

You can use TVertScrollBox for making kinetic energy on your screen. 您可以使用TVertScrollBox在屏幕上产生动能。 It will help you. 它会帮助你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM