Skip to content

Commit

Permalink
fixed an issue with keepToolbarVisible and an issue with the toolbar …
Browse files Browse the repository at this point in the history
…dissapearing when clicking the presentation window
  • Loading branch information
capilkey committed Dec 19, 2013
1 parent 2709fbd commit 74cb3bb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
presentationWindow = window;
presentationWindow.addEventListener(MoveEvent.MOVE, setPositionAndDepth);
presentationWindow.addEventListener(ResizeEvent.RESIZE, setPositionAndDepth);
presentationWindow.addEventListener(MouseEvent.CLICK, setPositionAndDepth);
if (!wbOptions.keepToolbarVisible) {
window.presCtrlBar.addEventListener(MouseEvent.ROLL_OVER, handleMouseOut);
Expand All @@ -256,14 +257,13 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
var listener2:Listener = new Listener();
listener2.method = checkVisibility;
listener2.type = MadePresenterEvent.SWITCH_TO_VIEWER_MODE;
presentationWindow.addEventListener(MouseEvent.CLICK, setPositionAndDepth);
//Do an initial check to see if the toolbar should be visible
checkVisibility();
}
}
private function checkVisibility(e:MadePresenterEvent = null):void {
if (toolbarAllowed() && slideLoaded && mousedOver) {
if (toolbarAllowed() && slideLoaded && (wbOptions.keepToolbarVisible || mousedOver)) {
setPositionAndDepth();
showWhiteboardToolbar = true;
} else {
Expand Down

0 comments on commit 74cb3bb

Please sign in to comment.