帮助完成简单的 Sproutcore 任务
我想知道在我的网页中实现 Sproutcore 来完成用一根手指而不是两根手指在 iPhone 或 iPad 上滚动 DIV 的简单任务会有多困难。
或者有更简单的方法吗?
先感谢您!
I was wondering how difficult it would be to implement Sproutcore into my webpage for the simple task of being able to scroll DIV's on an iPhone or iPad with one finger instead of two.
Or is there an easier way?
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
仅出于此目的引入 SproutCore 是不明智的,尤其是对于移动应用程序而言,因为它会包含太多的重量,而几乎没有为您的应用程序添加功能。
如果您只想拥有 iOS 滚动视图,还有其他更轻量级的库可以实现此目的。快速搜索(“iOS html 滚动视图 javascript”)显示:
http://code。 google.com/mobile/articles/webapp_fixed_ui.html(Google 是如何做的)
Pulling in SproutCore for just this purpose would be unwise, especially for a mobile app, as it would include far too much weight for very little added functionality for your app.
If you just want to have an iOS scroll view, there are other much lighter libraries for just this. A quick search (for "iOS html scroll view javascript") reveals:
http://code.google.com/mobile/articles/webapp_fixed_ui.html (how google does it)
SproutCore是一个完整的Web应用框架;将其合并到现有设计中以获得触摸滚动功能可能是比您需要的更多工具。我会查看 JS 库,它们只是交互库,而不是应用程序框架。
SproutCore is a complete web application framework; incorporating it into an existing design for the purpose of getting touch scrolling functionality is probably more tool than you need. I'd look at JS libraries which are just interaction libraries, not application frameworks.