1
0
Fork 0

don't waste time when we aren't in dyn-view mode at all

This commit is contained in:
mfranz 2007-02-05 22:59:51 +00:00
parent 286629c3e1
commit c9db8c22a3

View file

@ -243,11 +243,10 @@ main_loop = func(id) {
if (id != loop_id) { if (id != loop_id) {
return; return;
} }
if (cockpit_view and !panel_visible) {
if (mouse_button) { if (mouse_button) {
freeze(); freeze();
} else { } elsif (elapsedN.getValue() > mouse_freeze) {
var alive = elapsedN.getValue() > mouse_freeze;
if (cockpit_view and !panel_visible and alive) {
view_manager.apply(); view_manager.apply();
} }
} }
@ -280,8 +279,8 @@ var view_manager = nil;
var cockpit_view = nil; var cockpit_view = nil;
var panel_visible = nil; var panel_visible = nil;
var mouse_mode = nil;
var elapsedN = nil; var elapsedN = nil;
var mouse_mode = nil;
var mouse_freeze = 0; var mouse_freeze = 0;
var mouse_button = nil; var mouse_button = nil;