Reputation: 351
I created a Canvas on top of the reveal and have realized the basic drawing functionality on Canvas in test code.
However, when I show the canvas and do drawing stuff with my touch screen, it captures drawing function and swiping the sections at the same time.
Are there default settings that I can change to temporarily disable the swiping?
Upvotes: 0
Views: 501
Reputation: 351
Thanks everyone for thinking or answering this questions.
It turns out that there is no switch function in reveal.js that can turn the slide function temporarily off or not.
However, to implement the drawing functionality, there is a function called
d3.event.stopPropagation();
or
event.stopPropagation();
which can stop the swipe or dragging action on canvas/d3 from penetrating into the reveal.js swipe event.
Upvotes: 1