mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-16 01:14:17 +02:00
handle touch update without a touch begin event
This commit is contained in:
parent
8ede9fb39b
commit
3579bb46ab
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ function touchUpdateEvent(event) {
|
|||
if (wantDebugging) {
|
||||
print("touchUpdateEvent event.x,y=" + event.x + ", " + event.y);
|
||||
}
|
||||
|
||||
if (!startedTouching) {
|
||||
// handle Qt 5.4.x bug where we get touch update without a touch begin event
|
||||
startedTouching = true;
|
||||
lastX = event.x;
|
||||
lastY = event.y;
|
||||
}
|
||||
|
||||
var MOUSE_YAW_SCALE = -0.25;
|
||||
var MOUSE_PITCH_SCALE = -12.5;
|
||||
|
|
Loading…
Reference in a new issue