MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. tburk32
    3. Posts
    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
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @sdetweil changing the cursor value doesn’t seem to make a difference. The touch functionality works for mmm-Calendarext3, to select a day, clicking on the mmm-page-indicator to change pages and mmm-Microsofttodo to complete tasks, so it doesn’t seem to be a problem aside from mmm-Touch not registering the values unless in devtools with the device toolbar open.

      posted in Development
      T
      tburk32
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @sdetweil thanks for pointing out the -1 index, I saw it as a resolution on another topic and figured I’d try. No values in the z-index seem to make a difference.

      While in devtools, I selected “restore defaults and reload” and the MMM-Touch inputs were no longer recognized, which aligns with the expectation that “the code doesn’t know”. This helped me realize that the Device toolbar (ctrl+shift+M) has to be displayed for the inputs to be recognized again, either with a touch or a click.

      posted in Development
      T
      tburk32
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @sdetweil I removed all of the other modules in my config.js file and experienced the same results. To go one step further with the z-index exploration, I added this to the custom.css.

      .MMM-Touch (position: absolute; z-index -1) 
      

      Additionally, while having the dev console open, clicks with a mouse also register on MMM-Touch, so I it doesn’t seem like it’s unique to the display/touch function.

      I really appreciate your responses so far.

      posted in Development
      T
      tburk32
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @sdetweil I agree, but it isn’t the way it’s acting. When I have it in the dev console, a grey circle also appears on the screen as a cursor and I’m wondering if that is part of the difference.

      posted in Development
      T
      tburk32
    • RE: Need help MMM-touch MMM-pages MMM-page indicator

      @CurlyQ12391 @MMRIZE, I followed this thread to enable the swipe left and right to change pages but I’ve run into an issue that this only works when I have the dev console open, either using npm start dev or npm run start followed by ctrl+shift+i. Do you have any ideas why it would only work when the dev console is open?

      posted in Development
      T
      tburk32
    • 1 / 1