mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
Merge pull request #9485 from sethalves/tablet-ui
allow stylus to work when edit.js is running
This commit is contained in:
commit
d29abef9f5
1 changed files with 3 additions and 1 deletions
|
@ -848,7 +848,9 @@ function MyController(hand) {
|
|||
};
|
||||
|
||||
this.setState = function(newState, reason) {
|
||||
if (isInEditMode() && newState !== STATE_OFF && newState !== STATE_SEARCHING) {
|
||||
if (isInEditMode() && (newState !== STATE_OFF &&
|
||||
newState !== STATE_SEARCHING &&
|
||||
newState !== STATE_OVERLAY_STYLUS_TOUCHING)) {
|
||||
return;
|
||||
}
|
||||
setGrabCommunications((newState === STATE_DISTANCE_HOLDING) || (newState === STATE_NEAR_GRABBING));
|
||||
|
|
Loading…
Reference in a new issue