Commit 43d21ddb authored by mntmn's avatar mntmn
Browse files

space: scribble: make tool sticky, button toggles the tool

parent b5c6a79c
......@@ -2558,7 +2558,11 @@ var SpacedeckSections = {
},
start_drawing_scribble: function(evt) {
this.active_tool = "scribble";
if (this.active_tool == "scribble") {
this.active_tool = "pointer";
} else {
this.active_tool = "scribble";
}
this.opened_dialog = "none";
},
......
......@@ -735,7 +735,7 @@ function setup_whiteboard_directives() {
return;
}
if (_.include(["zoom"], $scope.active_tool)) {
if (_.include(["zoom", "scribble"], $scope.active_tool)) {
// tools that stay active after use
this.mouse_state = "idle";
$scope.mouse_state = this.mouse_state;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment