MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tburk32
    3. Best
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    T
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 6
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @68jeeper yes! Sorry for the delayed response, I didn’t receive any notifications that you tagged me in this post.

      My solution was to use (https://github.com/JanLoebel/mmm-touchgestures). Hammer.js seems to be the difference and why this one works. The documentation was challenging for me ti follow but I was able to get it working through trial and error. My config look like this for MMM-touchgestures

      
      {
          module: 'mmm-touchgestures',
          config: {
              gestures: {
                  "swipe": {
                      enabled: true,
                      threshold: 50
                  }
              },
          
              actions: {
                  "swiperight" : function() {
                      return "PAGE_INCREMENT";
                  },
                  "swipeleft" : function() {
                      return "PAGE_DECREMENT";
                  },
                  "swipeup" : function() {
                      console.log("Triggered swipeup");
                  },
                  "swipedown" : function() {
                      console.log("Triggered swipedown");
                  },
              },
          }
      },
      
      posted in Development
      T
      tburk32
    • 1 / 1