showoff icon indicating copy to clipboard operation
showoff copied to clipboard

Follower mode stops working if I switch away from the tab.

Open klynton opened this issue 12 years ago • 3 comments

It should keep updating in the background so that when I go back to that tab it is where the instructor is.

klynton avatar Oct 22 '14 19:10 klynton

Hrm. Not sure there's anything I can do about it. Many js engines will pause execution when the tab isn't visible. It should resume when you switch back though. Is that not the case?

binford2k avatar Oct 22 '14 20:10 binford2k

It doesn’t resume when I switch back to the tab. If I toggle follow mode it does.

On Oct 22, 2014, at 13:08, Ben Ford [email protected] wrote:

Hrm. Not sure there's anything I can do about it. Many js engines will pause execution when the tab isn't visible. It should resume when you switch back though. Is that not the case?

— Reply to this email directly or view it on GitHub https://github.com/puppetlabs/showoff/issues/182#issuecomment-60146694.

klynton avatar Oct 22 '14 20:10 klynton

I think I know what's happening. I'm only able to replicate something like this in a very specific workflow, so let me know if I've identified it?

  1. open a SINGLE tab window (not the slave window) and throw it up on the projector
  2. make sure the tab bar is HIDDEN on this window
  3. load the presentation by typing the address into the browser
  4. switch it into follow mode by pressing g
  5. go about the business of presenting
  6. at some point, open a SECOND tab in that window on the projector.
  7. do your stuff in the second window
  8. come back to the presentation in that window
  9. not in follow mode

If this is the case, then it's pretty clear what's happening. When a window is resized, I force the content to reload to make sure that all dynamically calculated items are sized appropriately. (there are likely better ways to do this.)

When the second tab is opened, the content view changes size so the presentation is reloaded. The default is to not be in follow mode, so your presentation is no longer following. You can see this by tapping the f key to get the footer.

This is not an issue if you use the slave window button to open an actual slaved presentation window.

The slave window also gives you other functionality, such as the ability to display form results on-projector, that just loading the address does not. As such, I'm not inclined to call this a bug, although it might be a good idea to make the follow mode more obvious.

binford2k avatar Dec 17 '14 23:12 binford2k