简体   繁体   English

黑莓网站:触控板滚动

[英]blackberry webworks: trackpad scrolling

i have several focusable elements in my app, so when i'm focusing a scrollable div, the focus goes to another focusable element instead of scrolling that div when using the trackpad. 我的应用程序中有几个可聚焦元素,因此当我聚焦可滚动div时,焦点将移至另一个可聚焦元素,而不是在使用触控板时滚动该div。 how can i prevent this? 我该如何预防呢? i want it to scroll that div first, and if it cant scroll anymore then jump to the next element. 我希望它首先滚动该div,如果无法滚动,则跳至下一个元素。 how can i achieve this? 我怎样才能做到这一点?

Take a look at the Kitchen Sink example for scrolling Divs: http://blackberry.github.com/WebWorks-Samples/kitchenSink/html/css3/overflow.html 看一下用于滚动Divs的Kitchen Sink示例: http : //blackberry.github.com/WebWorks-Samples/kitchenSink/html/css3/overflow.html

NOTE: Use Firebug/Chrome Developer tool to view the javascript doing all the work. 注意:使用Firebug / Chrome开发者工具查看执行所有工作的javascript。

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

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