omi-finger
Support touch and gesture events in your Omi project.
Usage
@ { 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; }` }
License
MIT © dntzhang