i am trying to implement gestures with my lit-element
using the library: https://github.com/composi/gestures
at the top of my file i have the following:
import { gestures } from '@composi/gestures'
gestures();
Then in my render function i have:
render() {
return html`
<div class="tablet-menu " id="tablet-menu-T">
<div class="tablet-menu-body" on-swipe="${this._swipe}">
....
However the _swipe
function is never called. so it doesnt seem that it registers the swipe command.
Can anyone tell me what ive done wrong?
from @composi/gestures swipe with lit element
No comments:
Post a Comment