Skip to content

Commit dc81537

Browse files
committed
Adding README
1 parent 641a3a8 commit dc81537

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

README.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
3+
## Introduction
4+
A gwtQuery plugin for adding gesture events.
5+
6+
## Usage
7+
8+
1. You only have to drop the .jar file in your classpath, or add this dependency to your project:
9+
10+
```
11+
<dependency>
12+
<groupId>com.googlecode.gwtquery.plugins</groupId>
13+
<artifactId>gesture-plugin</artifactId>
14+
<version>1.0-SNAPSHOT</version>
15+
<scope>provided</scope>
16+
</dependency>
17+
```
18+
2. Then use it as any other gQuery plugin through the `as()` method
19+
```
20+
// Observe attribute changes in all elements matching the selector
21+
$(selector)
22+
.as(Gesture.Gesture)
23+
.on("", new Function() {
24+
public boolean f(List<MutationRecord> mutations) {
25+
console.log(mutations.get(0).type());
26+
}
27+
});
28+
29+
```
30+
3. gQuery Gesture plugin is a port of the jGesture plugin at https://jgestures.codeplex.com/
31+
32+
33+
## Mobile compatibility
34+
35+
- iOS:
36+
orientationchange swipemove swipeone swipetwo swipethree swipefour swipeup swiperightup swiperight swiperightdown swipedown swipeleftdown swipeleft swipeleftup tapone taptwo tapthree tapfour shake shakefrontback shakeleftright shakeupdown pinchopen pinchclose rotatecw rotateccw pinch rotate
37+
38+
- Android:
39+
orientationchange swipemove swipeone swipetwo swipethree swipefour swipeup swiperightup swiperight swiperightdown swipedown swipeleftdown swipeleft swipeleftup tapone taptwo tapthree tapfour shake shakefrontback shakeleftright shakeupdown

0 commit comments

Comments
 (0)