Skip to content

Commit bc9371a

Browse files
author
zhangxinxu
committed
many improvement
1. remove custom tap event 2. add lots of comments 3. other improment
1 parent 8518507 commit bc9371a

File tree

9 files changed

+2854
-163
lines changed

9 files changed

+2854
-163
lines changed

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then Mobilebone will catch your attribute of href of 'a' element, and do switch.
2626

2727
The interface will switch to page whitch's value of <code>id</code> is <code>targetPage</code> when you tap this link.
2828

29-
Of course, you can control the direction of switching, or use a ajax get, ...
29+
Of course, you can control the direction of switching, or use a ajax get, or as a modular loaded by seajs, requirejs using <code>require('mobilebone')</code>...
3030

3131
For more detail, you can [visit here](http://www.zhangxinxu.com/wordpress/?p=4381).
3232

@@ -69,7 +69,7 @@ HTML结构需要有一定的要求:
6969
Mobilebone会自动捕获页面上的a元素,如果其href值存在猫腻,就会触发切换行为。例如:
7070
<pre>&lt;a href="#targetPage">target page&lt;/a></pre>
7171

72-
当tap此元素时候,页面会自动无刷新切换到<code>id</code>为<code>targetPage</code>的页面。你可以控制切换的方向,或者使用Ajax获取HTML或JSON, 可以被seajs, requiejs模块化加载,可以和Backbone组合使用等。
72+
当tap此元素时候,页面会自动无刷新切换到<code>id</code>为<code>targetPage</code>的页面。你可以控制切换的方向,或者使用Ajax获取HTML或JSON, 可以被seajs, requiejs模块化加载(<code>require('mobilebone')</code>),可以和Backbone组合使用等。
7373

7474
更多信息请[参考这里](http://www.zhangxinxu.com/wordpress/?p=4381).
7575

src/mobilebone.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ html, body {
1313
height: 100%;
1414
-webkit-user-select: none;
1515
user-select: none;
16+
-ms-touch-action: none;
1617
overflow: hidden;
1718
}
1819

0 commit comments

Comments
 (0)