--- tags: zeta-dom --- # Touch events ### `longPress` event ### `gesture` event ```typescript zeta.dom.on('gesture', (e) => { // one of the gesture, e.g. swipeLeft console.log(e.data); }); ``` Recognized gesture: | Name | Description | | ------------ | ----------- | | `swipeLeft` | - | | `swipeRight` | | | `swipeUp` | - | | `swipeDown` | - | | `pinchZoom` | - | In addition to `gesture` event, instead of putting lots of checking what gesture user is doing, all recognized gestures can be listened directly. ```typescript zeta.dom.on('swipeLeft', () => { doSomethingWhenSwipeLeft(); }); ``` ### `dom.beginDrag` ### `dom.beginPinchZoom`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up