Skip to content

yandeqiang/chimee-plugin-gesture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chimee-plugin-gesture

还在开发中...

该插件是一个基础插件,移动端的插件可以继承它,为这些插件提供手势事件,暴露给上层插件使用

install

安装

# 依赖于 chimee, 首先需要安装 chimee
npm install chimee
# 安装手势组件
npm install chimee-plugin-gesture

使用

import chimee from 'chimee';
import gestureFactory from 'chimee-plugin-gesture';

// 安装插件
const mobiControlbar = gestureFactory({
  name: 'mobiControlbar',
})
chimee.install(mobiControlbar);
const player = new chimee({
  // ...
  // 使用插件
  plugin: [
    mobiControlbar.name // 或者 'mobiControlbar'
  ]
});

配置

  1. tap
  2. swipe
  3. press
  4. panstart
  5. panmove
  6. panend

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%