tmcw / big

presentations for busy messy hackers

Home Page:https://glitch.com/~tmcw-big-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable cklick mouse to advance slide

diskmanti opened this issue Β· comments

Hello,

Is it possible to disable the click event to advance the slide, just for one slide or for the entire presentation?

PS: Not related to the issue, just wanted to tell you I am a big fan of BIG πŸ˜„. I do all of my presentation using BIG and it is great. You are doing a great job. πŸ‘

Amanti

Seems like this functionality already exists and is dependent on if it is in talk mode.
Lib/big.js
Line 392

  function onClick(e) {
      if (big.mode !== 'talk') return;
      if (e.target.tagName !== 'A') go((big.current + 1) % big.length);
  }

That's what I need. I need ti disable click on talk mode

#144

I have raised a pull request to allow for global mouse disable

I am no developer so thank you for helping me.

Just one more thing. To enable this feature I just need to change the code on row 79 in big.js and set mouseMode to true or false?

Hi all! Would love to get a better idea of the intent - why is it necessary to disable the mouse control? Is there something else that's intended? Is this possibly related to 'clicking links advancing slides', or something else?

Hello,

Yes the 'clicking links advancing slides' is one reason. But in my case is that I want to add an interactive leaflet map and when I try to pan it automatically advances to the next slide. I know that I can put a photo as a background but it is not the same.

Okay, thanks for the detail, I think there'll be a simpler way to get the desired functionality.

Closing: to allow interaction with an element on a slide, add a click handler to it and call event.stopPropagation().