Apply presentation mode styling via classList.add,

and not by setting the className.
This commit is contained in:
Aditya Bhatt
2014-05-16 15:56:14 +02:00
parent 014315ad78
commit fc4443eb3c
+2 -2
View File
@@ -374,7 +374,7 @@ function Viewer(viewerPlugin) {
if (!presentationMode) {
titlebar.style.display = toolbar.style.display = 'none';
overlayCloseButton.style.display = 'block';
canvasContainer.className = 'presentationMode';
canvasContainer.classList.add('presentationMode');
isSlideshow = true;
canvasContainer.onmousedown = function (event) {
event.preventDefault();
@@ -394,7 +394,7 @@ function Viewer(viewerPlugin) {
} else {
titlebar.style.display = toolbar.style.display = 'block';
overlayCloseButton.style.display = 'none';
canvasContainer.className = '';
canvasContainer.classList.remove('presentationMode');
canvasContainer.onmouseup = function () {};
canvasContainer.oncontextmenu = function () {};
canvasContainer.onmousedown = function () {};