mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
space: scribble: make tool sticky, button toggles the tool
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user