mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-15 17:37:30 +01:00
feat: move to node v16 and adding a pan tool
This commit is contained in:
@@ -2562,6 +2562,17 @@ var SpacedeckSections = {
|
||||
this.opened_dialog = "none";
|
||||
},
|
||||
|
||||
start_pan: function(evt) {
|
||||
this.deselect();
|
||||
if (this.active_tool == "pan") {
|
||||
this.active_tool = "pointer";
|
||||
} else {
|
||||
this.active_tool = "pan";
|
||||
}
|
||||
this.opened_dialog = "none";
|
||||
|
||||
},
|
||||
|
||||
start_drawing_scribble: function(evt) {
|
||||
this.deselect();
|
||||
if (this.active_tool == "scribble") {
|
||||
|
||||
@@ -733,7 +733,7 @@ function setup_whiteboard_directives() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_.include(["zoom", "scribble"], $scope.active_tool)) {
|
||||
if (_.include(["zoom", "scribble", "pan"], $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