Skip to content

tgxpuisb/gesture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gesture

使用方式

const Gestrue = require('Gestrue')
new Gestrue('.container') //监听第一个出现的container容器,默认是body,如果container是类名或者标签则选择第一个

// 然后在此元素下,或者当前元素上面触发的手势事件都会被监听

document.querySelector('.child').addEventListener('pan', function(){
	console.log('paning...')
})

// or

$('.child').on('pan', function(){
	console.log('paning...')
})

About

a gesture library for mobile phone

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published