mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 19:19:42 +02:00
Don't press sliders down when click on them
This commit is contained in:
parent
e1adb3a20e
commit
cc64644946
1 changed files with 3 additions and 1 deletions
|
@ -209,6 +209,8 @@ ToolMenu = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
|||
}
|
||||
},
|
||||
|
||||
BUTTON_UI_ELEMENTS = ["button", "swatch"],
|
||||
|
||||
OPTONS_PANELS = {
|
||||
groupOptions: [
|
||||
{
|
||||
|
@ -818,7 +820,7 @@ ToolMenu = function (side, leftInputs, rightInputs, uiCommandCallback) {
|
|||
visible: true
|
||||
});
|
||||
highlightedItem = intersectedItem;
|
||||
isHighlightingButton = true;
|
||||
isHighlightingButton = BUTTON_UI_ELEMENTS.indexOf(intersectionItems[intersectedItem].type) !== NONE;
|
||||
} else if (highlightedItem !== NONE) {
|
||||
// Un-highlight previous button.
|
||||
Overlays.editOverlay(highlightOverlay, {
|
||||
|
|
Loading…
Reference in a new issue