mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 02:29:49 -06:00
Move the disabling of the touch module to the beginning of the PreSync function to hopefully prevent errant inputs
This commit is contained in:
committed by
Alexander Bock
parent
36a4ba53d4
commit
dd272ddf3c
@@ -231,10 +231,14 @@ void TouchModule::internalInitialize(const ghoul::Dictionary& /*dictionary*/){
|
||||
|
||||
|
||||
global::callback::preSync->push_back([&]() {
|
||||
if (!_touchActive) {
|
||||
return;
|
||||
}
|
||||
|
||||
_touch.setCamera(global::navigationHandler->camera());
|
||||
_touch.setFocusNode(global::navigationHandler->orbitalNavigator().anchorNode());
|
||||
|
||||
if (processNewInput() && global::windowDelegate->isMaster() && _touchActive) {
|
||||
if (processNewInput() && global::windowDelegate->isMaster()) {
|
||||
_touch.updateStateFromInput(_touchPoints, _lastTouchInputs);
|
||||
}
|
||||
else if (_touchPoints.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user