mirror of
https://github.com/overte-org/overte.git
synced 2025-04-17 05:30:41 +02:00
Formatting
This commit is contained in:
parent
fb5a0c8b01
commit
53577107de
1 changed files with 3 additions and 2 deletions
|
@ -114,7 +114,8 @@ function touchUpdateEvent(event) {
|
|||
lastTouchX = event.x;
|
||||
lastTouchY = event.y;
|
||||
var d = new Date();
|
||||
lastTouchEvent = d.getTime();}
|
||||
lastTouchEvent = d.getTime();
|
||||
}
|
||||
|
||||
|
||||
function update(deltaTime) {
|
||||
|
@ -122,7 +123,7 @@ function update(deltaTime) {
|
|||
print("update()...");
|
||||
}
|
||||
|
||||
if(startedTouching) {
|
||||
if (startedTouching) {
|
||||
var d = new Date();
|
||||
var sinceLastTouch = d.getTime() - lastTouchEvent;
|
||||
if (sinceLastTouch > TIME_BEFORE_GENERATED_END_TOUCH_EVENT) {
|
||||
|
|
Loading…
Reference in a new issue