Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
178114a7
Commit
178114a7
authored
Jan 10, 2018
by
Tammo Jan Dijkema
Browse files
Switch off focusbox movement on button mouseout
parent
c57dc2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/js/dt_status.js
View file @
178114a7
...
...
@@ -289,19 +289,23 @@ function dt_status(element_name) {
this
.
fb_plus_command
=
new
controller_command
(
"
focusbox_plus
"
,
"
bool
"
);
this
.
fb_min_command
=
new
controller_command
(
"
focusbox_min
"
,
"
bool
"
);
this
.
button_fb_p
.
on
mousedown
=
function
()
{
this
.
button_fb_p
.
element
.
addEventListener
(
"
mousedown
"
,
function
()
{
dt_status_this
.
fb_plus_command
.
send
(
1
);
}
this
.
button_fb_p
.
onmouseup
=
function
()
{
dt_status_this
.
fb_plus_command
.
send
(
0
);
}
});
function
fb_p_disable
(
e
)
{
dt_status_this
.
fb_plus_command
.
send
(
0
);
}
this
.
button_fb_p
.
element
.
addEventListener
(
"
mouseup
"
,
fb_p_disable
);
this
.
button_fb_p
.
element
.
addEventListener
(
"
mouseout
"
,
fb_p_disable
);
this
.
button_fb_m
.
on
mousedown
=
function
()
{
this
.
button_fb_m
.
element
.
addEventListener
(
"
mousedown
"
,
function
()
{
dt_status_this
.
fb_min_command
.
send
(
1
);
}
this
.
button_fb_m
.
onmouseup
=
function
()
{
dt_status_this
.
fb_min_command
.
send
(
0
);
}
});
function
fb_m_disable
(
e
)
{
dt_status_this
.
fb_min_command
.
send
(
0
);
}
this
.
button_fb_m
.
element
.
addEventListener
(
"
mouseup
"
,
fb_m_disable
);
this
.
button_fb_m
.
element
.
addEventListener
(
"
mouseout
"
,
fb_m_disable
);
}
...
...
Write
Preview
Supports
Markdown
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