Preview
You can touch this → http://alloyteam.github.io/AlloyFinger/
Install
You can install it via npm:
npm install alloyfinger
Usage
var af = element { } { } { } { } { } { } { } { } { } { } { console; } { console; } { console; console; } { console; }; /** * this method can also add or remove the event handler */var {}; af;af; af; /** * this method can destroy the instance */af = af;
Omi Version:
@ { thisdatawording = 'Tap or Swipe Me!' } { thisdatawording += '\r\nTap' this } { thisdatawording += '\r\nSwipe-' + evtdirection this } { return <div> <omi-finger onTap=thishandleTap abc=a:1 onSwipe=thishandleSwipe> <div class="touchArea" > thisdatawording </div> </omi-finger> </div> } { return `.touchArea{ background-color: green; width: 200px; min-height: 200px; text-align: center; color:white; height:auto; white-space: pre-line; }` }
Others
License
This content is released under the MIT License.