readium/readium-shared-js — pull request #141 by marcuswu (2014-11-11 21:37:24+00:00)
Title: Firefox occasionally leaves opacity at 0

I found that in Firefox, changing to / from single column or changing font sizes could cause the epub contents to not be drawn. It was caused by hideBook and showBook being called rapidly in succession. It appears to be a race condition in Firefox where the css value from the last call to showBook hasn't yet applied when hideBook gets called next which caused both the css value for opacity and _currentOpacity to be set to 0. From then on subsequent calls to showBook and hideBook just kept reading and using the 0 value.