mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 17:39:30 +02:00
Fix button not unpressing when cursor moves off it
This commit is contained in:
parent
52a2538d73
commit
30595c78a0
1 changed files with 2 additions and 3 deletions
|
@ -114,9 +114,8 @@ ToolMenu = function (side, leftInputs, rightInputs, setAppScaleWithHandlesCallba
|
|||
}
|
||||
|
||||
// Button click.
|
||||
if (isHighlightingButton && controlHand.triggerClicked() !== isButtonPressed) {
|
||||
isButtonPressed = controlHand.triggerClicked();
|
||||
|
||||
if (!isHighlightingButton || controlHand.triggerClicked() !== isButtonPressed) {
|
||||
isButtonPressed = isHighlightingButton && controlHand.triggerClicked();
|
||||
if (isButtonPressed) {
|
||||
Overlays.editOverlay(buttonOverlay, {
|
||||
localPosition: Vec3.sum(BUTTON_PROPERTIES.localPosition, { x: 0, y: 0, z: 0.004 })
|
||||
|
|
Loading…
Reference in a new issue