readded focus on click
This commit is contained in:
parent
d7455adbd1
commit
d7a6382243
@ -171,6 +171,18 @@
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
this.viewModeHandler = function(e) {
|
||||
if (scope.__firstPerson) {
|
||||
e.target.className = e.target.className.replace(" focused", "");
|
||||
scope.__firstPerson = false;
|
||||
scope.disableFirstPersonViewerMode();
|
||||
} else {
|
||||
e.target.className += " focused";
|
||||
scope.__firstPerson = true;
|
||||
scope.enableFirstPersonViewerMode();
|
||||
}
|
||||
};
|
||||
|
||||
// Check if option values are correct
|
||||
this.adjustUserConfiguration();
|
||||
// Initialize rendering
|
||||
@ -516,6 +528,8 @@
|
||||
logo.className += "clickable pull-left madeleine-logo";
|
||||
view.className += "clickable pull-right icon-mad-view";
|
||||
|
||||
Lily.bind(view, "click", this.viewModeHandler);
|
||||
|
||||
var rotator = document.createElement("div");
|
||||
|
||||
rotator.style.cssText += "background:transparent;position:absolute;padding:15px 10px;right:0;";
|
||||
|
Loading…
Reference in New Issue
Block a user