improved idle handling

- times are now in seconds rather than minutes, like all other IITC time settings
- ignore mousemove events for no/small movements - more likely to go idle when it should
This commit is contained in:
Jon Atkins
2013-06-15 19:12:53 +01:00
parent c2b567f053
commit a988552e6e
2 changed files with 28 additions and 4 deletions

View File

@ -119,7 +119,7 @@ window.ZOOM_LEVEL_ADJ = 5; // add 5 seconds per zoom level
window.ON_MOVE_REFRESH = 1.25; //refresh time to use after a movement event
window.MINIMUM_OVERRIDE_REFRESH = 5; //limit on refresh time since previous refresh, limiting repeated move refresh rate
window.REFRESH_GAME_SCORE = 15*60; // refresh game score every 15 minutes
window.MAX_IDLE_TIME = 4; // stop updating map after 4min idling
window.MAX_IDLE_TIME = 4*60; // stop updating map after 4min idling
window.PRECACHE_PLAYER_NAMES_ZOOM = 17; // zoom level to start pre-resolving player names
window.HIDDEN_SCROLLBAR_ASSUMED_WIDTH = 20;
window.SIDEBAR_WIDTH = 300;