mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-16 01:47:30 +01:00
space: fix creating notes on top of other elements
This commit is contained in:
@@ -100,6 +100,11 @@ function setup_whiteboard_directives() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($scope.active_tool == "note") {
|
||||||
|
this.handle_mouse_down_space(evt, true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var a = $scope.find_artifact_by_id(evt.currentTarget.id.replace("artifact-",""));
|
var a = $scope.find_artifact_by_id(evt.currentTarget.id.replace("artifact-",""));
|
||||||
|
|
||||||
if ($scope.active_tool == "eyedrop") {
|
if ($scope.active_tool == "eyedrop") {
|
||||||
@@ -213,8 +218,8 @@ function setup_whiteboard_directives() {
|
|||||||
$scope.zoom_to_cursor(evt,amount);
|
$scope.zoom_to_cursor(evt,amount);
|
||||||
},
|
},
|
||||||
|
|
||||||
handle_mouse_down_space: function(evt) {
|
handle_mouse_down_space: function(evt, force) {
|
||||||
if (evt.which != 2) {
|
if (!force && evt.which != 2) {
|
||||||
if (evt.target != evt.currentTarget && !_.include(["wrapper"],evt.target.className)) return;
|
if (evt.target != evt.currentTarget && !_.include(["wrapper"],evt.target.className)) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user