- add more logging

This commit is contained in:
Richard Alam 2017-10-28 15:54:07 -07:00
parent 7885023e19
commit 515ff2a6c9
2 changed files with 6 additions and 1 deletions

View File

@ -408,10 +408,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
private function handleDisplaySlideEvent(event:DisplaySlideEvent):void {
LOGGER.debug("Got a DisplaySlideEvent pod=" + podId);
var presentationModel:PresentationModel = PresentationPodManager.getInstance().getPod(podId);
if (presentationModel != null) {
var curPage:Page = presentationModel.getCurrentPage();
if (curPage != null) {
LOGGER.debug("Got a DisplaySlideEvent pod=" + podId + " current page=" + curPage.num);
displaySlideNumber(curPage.num);
currentSlideWidth = event.slideWidth;
currentSlideHeight = event.slideHeight;

View File

@ -256,7 +256,10 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
public function onZoomSlide(zoom:Number):void {
if (slideLoader.content == null) return;
if (slideLoader.content == null) {
LOGGER.debug("Not zooming. slideLoader.content == null");
return;
}
zoomSlide(zoom, (((slideLoader.content.width/2)*SlideViewModel.HUNDRED_PERCENT)/zoom), (((slideLoader.content.height/2)*SlideViewModel.HUNDRED_PERCENT)/zoom));
}