Fix menu toggle element element hiding, better mobile support

This commit is contained in:
Dane Everitt 2017-01-19 23:19:26 -05:00
parent da92796ca1
commit 5567269bf3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 30 additions and 16 deletions

View file

@ -75,7 +75,7 @@ code {
}
.hasFileHover * {
pointer-events: none;
pointer-events: none !important;
}
td.has-progress {
@ -103,3 +103,13 @@ td.has-progress {
.use-pointer {
cursor: pointer !important;
}
.input-loader {
display: none;
position:relative;
top: -23px;
float: right;
right: 5px;
color: #cccccc;
height: 0;
}

View file

@ -83,7 +83,7 @@ class ContextMenuClass {
}
rightClick() {
$('[data-action="toggleMenu"]').on('mousedown', () => {
$('[data-action="toggleMenu"]').on('mousedown', event => {
event.preventDefault();
this.showMenu(event);
});
@ -173,8 +173,12 @@ class ContextMenuClass {
});
}
$(window).on('click', () => {
$(menu).remove();
$(window).unbind().on('click', event => {
if($(event.target).is('.disable-menu-hide')) {
event.preventDefault();
return;
}
$(menu).unbind().remove();
if(!_.isNull(this.activeLine)) this.activeLine.removeClass('active');
});
}