@@ -65,7 +65,7 @@ HotelTV.ui_appfull = (function() {
|
||||
var _hndl_tmrCtzBgAni = null;
|
||||
var _hndl_tmrAmenityThumbAni = null;
|
||||
var _hndl_tmrRoomserviceThumbAni = null;
|
||||
const _lastTm = {
|
||||
const _tmrEvt = {
|
||||
'tvchannel_changed': null,
|
||||
'keyevt': {
|
||||
'tv_num' :null,
|
||||
@@ -300,13 +300,13 @@ HotelTV.ui_appfull = (function() {
|
||||
let _cur_date = new Date();
|
||||
|
||||
if ( __uifxn_Utils_CheckKeyisNumber(_evt.keyCode)==true ){
|
||||
_lastTm.keyevt.tv_num = _cur_date;
|
||||
_tmrEvt.keyevt.tv_num = _cur_date;
|
||||
} else if ( _evt.keyCode == gRmtKey.up || _evt.keyCode == gRmtKey.down ||
|
||||
_evt.keyCode == gRmtKey.left || _evt.keyCode == gRmtKey.right ||
|
||||
_evt.keyCode == gRmtKey.chup || _evt.keyCode == gRmtKey.chdown ) {
|
||||
_lastTm.keyevt.tv_ctrl = _cur_date;
|
||||
_tmrEvt.keyevt.tv_ctrl = _cur_date;
|
||||
}
|
||||
_lastTm.keyevt.last = _cur_date;
|
||||
_tmrEvt.keyevt.last = _cur_date;
|
||||
}
|
||||
|
||||
|
||||
@@ -3926,14 +3926,14 @@ HotelTV.ui_appfull = (function() {
|
||||
let _state = HotelTV.state;
|
||||
let _tm_diff_ms_tvctrl = 0;
|
||||
|
||||
if (_lastTm.keyevt.tv_ctrl == null) {
|
||||
if (_tmrEvt.keyevt.tv_ctrl == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
let _tm_cur = new Date();
|
||||
_tm_diff_ms_tvctrl = Math.floor(_tm_cur.getTime() - _lastTm.keyevt.tv_ctrl.getTime());
|
||||
_tm_diff_ms_tvctrl = Math.floor(_tm_cur.getTime() - _tmrEvt.keyevt.tv_ctrl.getTime());
|
||||
//마지막 KEY 이벤트 수신 시간 갱신
|
||||
//console.log(`KeyDn Event Recoreded::> ${_lastTm.keyevt.tv_ctrl} TMDiff::> ${_tm_diff_ms}`);
|
||||
//console.log(`KeyDn Event Recoreded::> ${_tmrEvt.keyevt.tv_ctrl} TMDiff::> ${_tm_diff_ms}`);
|
||||
|
||||
// TV Channel UI 지속 시간 2초
|
||||
if ( _state.menu.stage.cur=="tvShortcut" )
|
||||
@@ -4567,14 +4567,14 @@ HotelTV.ui_appfull = (function() {
|
||||
let _need_to_changeTVChannel = false;
|
||||
let _tm_diff_ms = 0;
|
||||
|
||||
if (_lastTm.tvchannel_changed == null) {
|
||||
_lastTm.tvchannel_changed = new Date();
|
||||
if (_tmrEvt.tvchannel_changed == null) {
|
||||
_tmrEvt.tvchannel_changed = new Date();
|
||||
_need_to_changeTVChannel = true;
|
||||
} else {
|
||||
let _tm_cur = new Date();
|
||||
_tm_diff_ms = Math.floor(_tm_cur.getTime() - _lastTm.tvchannel_changed.getTime());
|
||||
_tm_diff_ms = Math.floor(_tm_cur.getTime() - _tmrEvt.tvchannel_changed.getTime());
|
||||
//마지막 TV채널 변경 시간 갱신
|
||||
_lastTm.tvchannel_changed = _tm_cur;
|
||||
_tmrEvt.tvchannel_changed = _tm_cur;
|
||||
|
||||
if (_tm_diff_ms > 200) {
|
||||
_need_to_changeTVChannel = true;
|
||||
@@ -5580,8 +5580,8 @@ HotelTV.ui_appfull = (function() {
|
||||
}
|
||||
|
||||
// 초기 채널 카테고리 슬라이더 표시 시간 증가
|
||||
_lastTm.keyevt.tv_ctrl = new Date();
|
||||
_lastTm.keyevt.tv_ctrl.setSeconds(_lastTm.keyevt.tv_ctrl.getSeconds() + 3);
|
||||
_tmrEvt.keyevt.tv_ctrl = new Date();
|
||||
_tmrEvt.keyevt.tv_ctrl.setSeconds(_tmrEvt.keyevt.tv_ctrl.getSeconds() + 3);
|
||||
|
||||
if (!(_mmIdx in _state.menu.main)) {
|
||||
_state.menu.main[_mmIdx] = {
|
||||
@@ -5791,8 +5791,8 @@ HotelTV.ui_appfull = (function() {
|
||||
_state.menu.stage.cur = _state.menu.stage.prev;
|
||||
_state.menu.stage.prev = null;
|
||||
|
||||
_lastTm.keyevt.tv_ctrl = new Date();
|
||||
_lastTm.keyevt.tv_ctrl.setSeconds(_lastTm.keyevt.tv_ctrl.getSeconds() - 3);
|
||||
_tmrEvt.keyevt.tv_ctrl = new Date();
|
||||
_tmrEvt.keyevt.tv_ctrl.setSeconds(_tmrEvt.keyevt.tv_ctrl.getSeconds() - 3);
|
||||
} else {
|
||||
__uifxn_AppFull_TVDrawShortCutList(true, "move", event.keyCode);
|
||||
console.log("TVSHORTCUT CHNUM: " + _state.tv.shortkey.ch_item_idx);
|
||||
@@ -5849,16 +5849,16 @@ HotelTV.ui_appfull = (function() {
|
||||
|
||||
let _tm_diff_ms = 0;
|
||||
|
||||
if (_lastTm.keyevt.last == null) {
|
||||
_lastTm.keyevt.last = new Date();
|
||||
if (_tmrEvt.keyevt.last == null) {
|
||||
_tmrEvt.keyevt.last = new Date();
|
||||
console.log("keyevt.last is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
let _tm_cur = new Date();
|
||||
_tm_diff_ms = Math.floor(_tm_cur.getTime() - _lastTm.keyevt.last.getTime());
|
||||
_tm_diff_ms = Math.floor(_tm_cur.getTime() - _tmrEvt.keyevt.last.getTime());
|
||||
//마지막 KEY 이벤트 수신 시간 갱신
|
||||
//console.log(`KeyDn Event Recoreded::> ${_lastTm.keyevt.last} TMDiff::> ${_tm_diff_ms}`);
|
||||
//console.log(`KeyDn Event Recoreded::> ${_tmrEvt.keyevt.last} TMDiff::> ${_tm_diff_ms}`);
|
||||
|
||||
if (_state.menu.stage.cur == "mypage_popup_message_card") {
|
||||
//HIDE NEWS and USER GUIDE TIPS
|
||||
|
||||
Reference in New Issue
Block a user