mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-16 18:07:31 +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) {
|
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";
|
this.opened_dialog = "none";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -735,7 +735,7 @@ function setup_whiteboard_directives() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_.include(["zoom"], $scope.active_tool)) {
|
if (_.include(["zoom", "scribble"], $scope.active_tool)) {
|
||||||
// tools that stay active after use
|
// tools that stay active after use
|
||||||
this.mouse_state = "idle";
|
this.mouse_state = "idle";
|
||||||
$scope.mouse_state = this.mouse_state;
|
$scope.mouse_state = this.mouse_state;
|
||||||
|
|||||||
Reference in New Issue
Block a user