Skip to content

Commit

Permalink
mainDiv on mouseenter
Browse files Browse the repository at this point in the history
  • Loading branch information
araczkowski committed Apr 26, 2021
1 parent 33d730c commit 34ee3dc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@
gMultiSelectToogleMealId = null;
}
})
mainDiv.on('mouseenter', function(e){
if(e.buttons == 1 || e.buttons == 3){
gMultiSelectToogleBlockId = null;
gMultiSelectToogleMealId = null;
}
})



Expand Down Expand Up @@ -294,18 +300,15 @@

// multiselect
cutlery.on('mouseenter', function(e){
console.log('mouseenter');
if(e.buttons == 1 || e.buttons == 3){
if (gMultiSelectToogleMealId !== elementID){
gMultiSelectToogleMealId = elementID;
console.log(elementID);
_toggleMeal(this);
}
gMultiSelectToogleBlockId = null;
}
})
// cutlery.on('mouseleave', function(e){
// console.log('mouseleave');
// if (!_options.readonly){
// gMultiSelectToogleMealId = null;
// }
Expand Down

0 comments on commit 34ee3dc

Please sign in to comment.