All Projects → AlloyTeam → Alloyfinger

AlloyTeam / Alloyfinger

Licence: mit
Super tiny size multi-touch gestures library for the web.    You can touch this →

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to Alloyfinger

Touchkit
基于mtouch封装的,更便于业务使用的贴纸手势库
Stars: ✭ 48 (-98.52%)
Mutual labels:  gesture, touch
Any Touch
👋 手势库, 按需2kb~5kb, 兼容PC / 移动端
Stars: ✭ 567 (-82.52%)
Mutual labels:  gesture, touch
Better Gesture
A gesture library use for pc, mobile, vue, and mini programs
Stars: ✭ 419 (-87.08%)
Mutual labels:  gesture, touch
gesto
You can set up drag, pinch events in any browser.
Stars: ✭ 47 (-98.55%)
Mutual labels:  touch, gesture
Hovertouchview
Stimulate Apple's Force Touch or 3D Touch on Android App with Hover Gesture
Stars: ✭ 192 (-94.08%)
Mutual labels:  gesture, touch
React Gesture Responder
a gesture responder system for your react application
Stars: ✭ 99 (-96.95%)
Mutual labels:  gesture, touch
React Native Swipe Gestures
4-directional swipe gestures for react-native
Stars: ✭ 471 (-85.48%)
Mutual labels:  gesture, touch
Zingtouch
A JavaScript touch gesture detection library for the modern web
Stars: ✭ 2,019 (-37.76%)
Mutual labels:  gesture, touch
gestures
A library for normalized events and gesture for desktop and mobile.
Stars: ✭ 31 (-99.04%)
Mutual labels:  touch, gesture
react-imageViewer
React component for image displaying in full screen
Stars: ✭ 61 (-98.12%)
Mutual labels:  touch, alloyfinger
react-gesture-gallery
a react image gallery with gesture support
Stars: ✭ 14 (-99.57%)
Mutual labels:  gesture
react-native-gesture-detector
Create and detect custom, complex gestures in React Native. 🍭
Stars: ✭ 75 (-97.69%)
Mutual labels:  gesture
React Event Components
🛰 A set of React components designed to handle global events (interval, keyboard, touch, mouse, etc)
Stars: ✭ 271 (-91.65%)
Mutual labels:  touch
Framework7
Full featured HTML framework for building iOS & Android apps
Stars: ✭ 16,560 (+410.48%)
Mutual labels:  touch
spockpy
✊ ✋ ✌️ ☝️ 🖖 A Python hand gesture recognition library for Kinetic User Interface (KUI).
Stars: ✭ 50 (-98.46%)
Mutual labels:  gesture
Phytouch
Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案
Stars: ✭ 2,854 (-12.02%)
Mutual labels:  touch
FloatingView
FloatingView moved by finger supporting OverlaySystem, OverlayActivity, OverlayViewGroup modes
Stars: ✭ 58 (-98.21%)
Mutual labels:  touch
PDollar-Unity
PDollar algorithm Unity friendly
Stars: ✭ 99 (-96.95%)
Mutual labels:  gesture
arduino
Arduino experiments
Stars: ✭ 20 (-99.38%)
Mutual labels:  touch
Arkit
ARKit Base Project. Place virtual objects based on WWDC example project
Stars: ✭ 297 (-90.84%)
Mutual labels:  gesture

Preview

You can touch this → http://alloyteam.github.io/AlloyFinger/

Install

You can install it via npm:

npm install alloyfinger

Usage

var af = new AlloyFinger(element, {
    touchStart: function () { },
    touchMove: function () { },
    touchEnd:  function () { },
    touchCancel: function () { },
    multipointStart: function () { },
    multipointEnd: function () { },
    tap: function () { },
    doubleTap: function () { },
    longTap: function () { },
    singleTap: function () { },
    rotate: function (evt) {
        console.log(evt.angle);
    },
    pinch: function (evt) {
        console.log(evt.zoom);
    },
    pressMove: function (evt) {
        console.log(evt.deltaX);
        console.log(evt.deltaY);
    },
    swipe: function (evt) {
        console.log("swipe" + evt.direction);
    }
});

/**
 * this method can also add or remove the event handler
 */
var onTap = function() {};

af.on('tap', onTap);
af.on('touchStart', function() {});

af.off('tap', onTap);

/**
 * this method can destroy the instance
 */
af = af.destroy();

Omi Version:

import { render, tag, WeElement } from 'omi'
import 'omi-finger'

@tag('my-app')
class MyApp extends WeElement {
  install() {
    this.data.wording = 'Tap or Swipe Me!'
  }

  handleTap = (evt) => {
    this.data.wording += '\r\nTap'
    this.update()
  }

  handleSwipe = (evt) => {
    this.data.wording += '\r\nSwipe-' + evt.direction
    this.update()
  }

  render() {
    return (
      <div>
        <omi-finger onTap={this.handleTap} abc={{a:1}} onSwipe={this.handleSwipe}>
          <div class="touchArea" >
            {this.data.wording}
          </div>
        </omi-finger>
      </div>
    )
  }

  css() {
    return `.touchArea{
                  background-color: green;
                  width: 200px;
                  min-height: 200px;
                  text-align: center;
                  color:white;
                  height:auto;
                  white-space: pre-line;
              }`
  }
}

render(<my-app></my-app>, 'body')

Others

License

This content is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].