@briant wrote:
I’m trying to use the Gesture utility with code below directly from example on site…
and getting this error:
Error:> "Uncaught TypeError: Cannot read property ‘__zone_symbol__addEventListener’ of null"
Code using:
pg = document.querySelector('.ppp'); gesture: Gesture = createGesture({ el: document.querySelector('.target-section'), threshold: 15, gestureName: 'my-gest', onMove: (detail) => { console.log('test'); //this.onMove(detail) } }); //gesture.enable(); onMove = (detail:any) => { console.log('IN IN IN MOVE!'); const type = detail.type; const currentX = detail.currentX; const deltaX = detail.deltaX; const velocityX = detail.velocityX; //let pg = document.querySelector('p'); this.pg.innerHTML = ` <div>Type: ${type}</div> <div>Current X: ${currentX}</div> <div>Delta X: ${deltaX}</div> <div>Velocity X: ${velocityX}</div> ` }
I’m triggering on a button call when clicked … any ideas anyone? and thaaanks! in advance
Posts: 1
Participants: 1