Read the statement by Michael Teeuw here.
Need help MMM-touch MMM-pages MMM-page indicator
-
@tburk32 you have an error there
css has
name : value ;
your z-index is missing both : and ;
and -1 means background, down/further away , in the 3d stack
so that puts other content on top of it, so touch wont work -
@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.
-
@tburk32 did you enable touch events in custom.css
cause they are disabled by default in main.css
main.csshtml { cursor: none; }
custom.css
html { cursor: default; }
-
@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.
-
@tburk32 so touch is under ext3
put touch on top then ext3 wont work
-
@tburk32 were you able to get this going? I am attempting to do the same and it is not working for me either.
-
@68jeeper what is not working?
-
-
@68jeeper well, I can’t get touch to trigger at all… only thing in bottom_bar…
(on my mac with mouse) -
@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"); }, }, } },