5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1" />
7 <link rel=
"stylesheet" href=
"../style.css#" type=
"text/css" />
8 <title>Gestures
</title>
9 <script type=
"text/javascript">
11 let href
= location
.href
;
12 for(let i
=href
.length
-1;i
>0;i
--){
13 if('/'==href
.charAt(i
) && '/'==href
.charAt(i
-3))
20 location
.href
= location
.href
.substring(0,i
+1)+page
;
22 function nav2Lang(lang
){
24 let href
= location
.href
;
25 location
.href
= location
.href
.substring(0,i
-2)+lang
+location
.href
.substring(i
);
30 <header class='header'
>
31 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('index.html')">Home
</a> <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2('tags/index.html')">Tags
</a>
34 <a class=
"logo" href=
"javascript:void(0)" onclick=
"return nav2Lang('zh')">简体中文
</a>
42 <div class=
"container">
43 <h1 class=
"title">Gestures
45 <span class=
"subtitle"></span>
50 <p>Swipe down from the top to show the address bar; swipe up to the top to hide the address bar. Swipe down to the bottom to hide the toolbar with option
"swipe to hide tools
"; swipe on the bottom corners to show the toolbar.
</p>
51 <p>Swipe left/right near the toolbar to switch window; fling left/right to switch to the last/first window.
</p>
52 <p>Swiping on the top part of content window (near the top address bar by default) triggers corresponding link in the file
"default.gesture
", which has the same format as
<a href=
"../links/index.html">default.link
</a>.
</p>
53 <p>The algorithm to match swiping gesture to a line in the file
"default.gesture
" is as follows:
</p>
55 <li>Divide the screen width to three parts evenly, assign each part with a number
0,
1,
2 respectively.
</li>
56 <li>Assume
"s
" and
"e
" are the above defined numbers for the gesture start point and end point. Let
"linenumber =
3*s+e
" , if it is equal to
4 and the gesture's first direction is left, then change it to be
9.
</li>
57 <li>For turning back and forth, add
"10" each time.
</li>
59 <p>The final line number will match the corresponding line in
"default.gesture
",
0 to the first line, ...
</p>
60 <p>"default.gesture2
" is for the right side gesturs and the algorithm is similar to
"default.gesture
".
</p>
62 Toggle fullscreen::
0003<br>
63 back:javascript:history.back()
<br>
64 forward:javascript:history.forward()
<br>
65 back2:javascript:history.go(-
2)
</p>
68 <p>Last Modified:
24 September
2022<br>
74 src='https://giscus.app/client.js'
75 data-repo=
"torappinfo/uweb"
76 data-repo-id=
"MDEwOlJlcG9zaXRvcnkzMDIyMDU3MjE="
77 data-category=
"Announcements"
78 data-category-id=
"DIC_kwDOEgNLGc4CQjsh"
81 data-reactions-enabled=
"1"
82 data-emit-metadata=
"0"
83 data-input-position=
"top"
87 crossorigin=
"anonymous" async
>