Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Wolfgang Knopki
Spacedeck-open-SAML
Commits
43d21ddb
Commit
43d21ddb
authored
Apr 19, 2020
by
mntmn
Browse files
space: scribble: make tool sticky, button toggles the tool
parent
b5c6a79c
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/javascripts/spacedeck_sections.js
View file @
43d21ddb
...
...
@@ -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
"
;
},
...
...
public/javascripts/spacedeck_whiteboard.js
View file @
43d21ddb
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment