blackberry / bbUI.js

BlackBerry UI look and feel JavaScript toolkit for WebWorks
Apache License 2.0
312 stars 192 forks source link

could ActionBar .hide() .show() be animated like native? #1003

Closed MerrickZ closed 10 years ago

MerrickZ commented 10 years ago

could ActionBar .hide() .show() be animated like native?

tneil commented 10 years ago

We've decided to not animate it. The reason being performance. Because when it hides, it is also sizing the scrollable area above it, the animation can get choppy. We chose the option that was the fastest and didn't create a choppy effect. This is the same reasoning for the drop-downs not animating when opening. The animation of sizing the element and re-laying out the rest of the DOM had performance issues.

MerrickZ commented 10 years ago

Yep, I agree with you, performance first. 发送自我的 BlackBerry 10 智能手机。 发件人: Tim Neil已发送: 2014年1月23日星期四 下午10:02收件人: blackberry/bbUI.js答复: blackberry/bbUI.js抄送: Merrick Zhang主题: Re: [bbUI.js] could ActionBar .hide() .show() be animated like native? (#1003)We've decided to not animate it. The reason being performance. Because when it hides, it is also sizing the scrollable area above it, the animation can get choppy. We chose the option that was the fastest and didn't create a choppy effect. This is the same reasoning for the drop-downs not animating when opening. The animation of sizing the element and re-laying out the rest of the DOM had performance issues.

—Reply to this email directly or view it on GitHub.