这感觉像是一个愚蠢的新手问题。我正在尝试遵循 Palm's online tutorial用于开发 webOS 应用程序。我运行 palm-generate
并尝试更新生成的 index.html 文件,使其具有包含大量内容的正文(“HELLO”一词重复了 400 次)。
当我尝试在模拟器中加载该文档时,我发现无法滚动屏幕来阅读其余文本。我拖动屏幕,但没有任何反应。该页面在 Palm Web 浏览器中滚动得很好。
是否有设置允许用户拖动我的应用程序来滚动它?我看到了 Mojo.Widget.Scroller 的文档,但这对于带有一堆文本的简单网页来说似乎没有必要。
最佳答案
感谢arthurthornton :
You can take anything that would normally be inside the tags and put that inside the scene HTML file.
OR you could just make a basic scene with a webview widget inside it that has your site as the source.
关于scroll - 如何滚动我的 Palm webOS 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3874551/