Skip to content

Commit

Permalink
Fix about scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
themitosan committed Sep 26, 2023
1 parent bf1279c commit a484ed3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
8 changes: 8 additions & 0 deletions App/js/design.js
Original file line number Diff line number Diff line change
Expand Up @@ -821,11 +821,19 @@ temp_DESIGN = {
// Call about screen
APP.design.msgsys.displayMsg({showBgIcon: !0, msgName: 'general_showAbout'});

// Fix scroll
document.getElementById('APP_LOCKINPUT').onmousewheel = function(data){
document.getElementById('fpPS4_TL_ABOUT_DATA').scrollBy({top: data.deltaY, left: 0});
};

},

// About: Close and return to game list
GAMELIST_closeAbout: function(){

// Reset mousewheel
document.getElementById('APP_LOCKINPUT').onmousewheel = null;

// Fade out "4" and fade in bg
TMS.css('APP_CANVAS_BG', {'opacity': '0.62'});
TMS.css('APP_CANVAS_BG_ICON', {'opacity': '0'});
Expand Down
11 changes: 3 additions & 8 deletions App/js/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ temp_LANGUAGE = {
*/
"langId": '',
"lang": "English",
"author": "TemmieHeartz",
"revision": "TemmieHeartz",
"author": "TheMitoSan",
"revision": "TheMitoSan",

/*
Variables
Expand Down Expand Up @@ -469,7 +469,7 @@ temp_LANGUAGE = {
// About screen
"general_showAbout": {
"title": "About fpPS4 Temmie\'s Launcher",
"message": "<div class=\"APP_POPUP_MESSAGE position-absolute list-fade text-align-left\"><div class=\"text-align-center\">%VARIABLE_0%</div></div>"
"message": "<div class=\"APP_POPUP_MESSAGE position-absolute list-fade text-align-left\" id=\"fpPS4_TL_ABOUT_DATA\"><div class=\"text-align-center\">%VARIABLE_0%</div></div>"
},

// Settings: Settings file corrupted
Expand Down Expand Up @@ -538,11 +538,6 @@ temp_LANGUAGE = {
"updater_emuErrorWorflow404": {
"title": "Error",
"message": "<div class=\"APP_POPUP_MESSAGE_CONFIRM list-fade\">It seems that selected workflow list does not exists on fpPS4 GitHub. You can selected where it should load from this list below:</div><div class=\"APP_POPUP_MESSAGE_CONFIRM_ACTIONS\">%LIST%</div>"
},

"updater_TEST": {
"title": "Quick info",
"Message": "<div class=\"APP_POPUP_MESSAGE_CONFIRM list-fade\">Yep, I know - it's sad. But this is not the end. I will keep providing updates on main project when needed and if everything goes as my plans says, I will be back bringing good news about 2.0.</div>"
}

}
Expand Down
4 changes: 2 additions & 2 deletions App/js/msgsys.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ temp_MSGSYS = {
});

// Reset content positions
TMS.css('APP_POPUP_CONTENT_0', {'transition-duration': '0s', 'z-index': 1, 'left': '14.2%'});
TMS.css('APP_POPUP_CONTENT_1', {'transition-duration': '0s', 'z-index': 0, 'left': '100%'});
TMS.css('APP_POPUP_CONTENT_0', {'transition-duration': '0s', 'z-index': '1', 'left': '14.2%'});
TMS.css('APP_POPUP_CONTENT_1', {'transition-duration': '0s', 'z-index': '0', 'left': '100%'});

// Prepare GUI before showing
TMS.css('APP_MSGSYS', {'display': 'block', 'opacity': '0'});
Expand Down

0 comments on commit a484ed3

Please sign in to comment.