MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    How to Swipe between pages

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    19 Posts 5 Posters 872 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @TheSteveBennett
      last edited by

      @TheSteveBennett MMM-Touch was the module i was thinking of

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        seabass @sdetweil
        last edited by

        @sdetweil
        Hi Sam, were you able to get the swipe functionality working and did you use the MMM-SmartTouch along with the MMM-Touch modules? If so, could you provide your code to get this working as I’m new to the Magic Mirror community and struggling to get this swipe functionality working.

        Thanks!

        Seabass

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @seabass
          last edited by

          @seabass wasnt me trying to do swipe. i was trying to help the OP debug and find out what was going on.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            seabass @sdetweil
            last edited by

            @sdetweil Sorry about that.

            @TheSteveBennett were you able to get the swipe functionality working and did you use the MMM-SmartTouch along with the MMM-Touch modules? If so, could you provide your code to get this working as I’m new to the Magic Mirror community and struggling to get this swipe functionality working.

            S 3 Replies Last reply Reply Quote 0
            • S Offline
              sdetweil @seabass
              last edited by

              @seabass If you add MMM-ViewNotifications, does it show any notifications being sent?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @seabass
                last edited by

                @seabass neither of those modules support swipe
                MMM-Swipe maybe but it requires hardware sensor

                Screenshot at 2025-07-18 13-02-54.png

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @seabass
                  last edited by sdetweil

                  @seabass you can use the MMM-PageIndicator module to put buttons on the screen to provide manual nav (and you can customize the buttons using css)

                  its not swipe tho

                  also, are you talking mouse swipe, finger swipe, hand waving swipe?
                  they all have different requirements for implementation

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    seabass @sdetweil
                    last edited by sdetweil

                    @sdetweil I seem to only see the onIdle notification from the MMM-Touch module. When I use the MMM-SmartTouch module it works as it should so I know the touch screen is working fine. Here’s my config for MMM-Touch.

                    module: "MMM-Touch",
                    			position: "fullscreen_above", 
                    			config: {
                    				debug: false,
                    				useDisplay: true, 
                    				autoMode: false, 
                    				threshold: {
                    					moment_ms: 1000 * 0.5,
                    					double_ms: 1000 * 0.75, 
                    					press_ms: 1000 * 3,
                    					move_px: 50,
                    					pinch_px: 50, 
                    					rotate_dg: 20, 
                    					idle_ms: 30000,
                    				},
                    				defaultMode: "default", 
                    				onTouchStart: "TOUCH_ACTIVITY_STARTED", 
                    				onTouchEnd: null, 
                                                    onTouchEnd: "TOUCH_ACTIVITY_ENDED"
                    				onIdle: "TOUCH_IDLE_TRIGGERED", 
                    				gestureCommands: {
                    					"default": {
                    						"SWIPE-LEFT": (commander, gesture) => {
                    							commander.sendNotification("NEW_PAGE"),
                    							commander.sendNotification("PAGE_INCREMENT")
                    						},
                    						"SWIPE-RIGHT": (commander, gesture) => {
                    							commander.sendNotification("NEW_PAGE"),
                    							commander.sendNotification("PAGE_DECREMENT")
                                            }
                    					}
                    				}
                    			}
                    
                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      seabass @sdetweil
                      last edited by

                      @sdetweil I’ve been trying to use MMM-Touch (https://github.com/gfischershaw/MMM-Touch/tree/master) which says it’s a plugin for touch gesture commander using touchscreen. Regarding what type of swipe, I’m wanting to use finger swipe on the touchscreen. For testing purposes, mouse swipe when using VNC would be nice.

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sdetweil @seabass
                        last edited by

                        @seabass so, using MMM-ViewNotifications module

                        do you see the notifications going out?
                        if you look in the developers window console tab (ctrl-shift-i) do you see any errors related to the touch module?

                        what other modules are loaded besides pages?

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        S 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 2 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy