mirror of
https://github.com/webodf/WebODF.git
synced 2026-12-01 16:56:05 +01:00
Apply presentation mode styling via classList.add,
and not by setting the className.
This commit is contained in:
@@ -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 () {};
|
||||
|
||||
Reference in New Issue
Block a user