You are reading a single comment by @Ganblejs and its replies. Click here to read the full conversation.
  • Ok, try initiating onDrag outside of initDragEvents() like so:

    //......
    
    let onDrag; // Initiate onDrag here. If you want to you could move the logic here as well but it shouldn't be neccesary, I think.
    
    function initDragEvents() {
    	
    if (BANGLEJS2) { 	
    	//Bangle.on("drag", e => {
    	onDrag = e => {  // Add logic to onDrag here as before. Notice I dropped the "let" on this line.
                //......
    
About

Avatar for Ganblejs @Ganblejs started