Navigation Settings for HTML5 Player

Problem: The player navigation controls assume linearity; many eLearning modules are non-linear (e.g., use branching scenarios). Is there a way to have the back button on the player ( << ) return the user to the last previously visited slide instead of to the previous slide in the stack? I know I can create buttons and achieve this but having the option in the player would be a more elegant solution for the project I am working on. Thank you very much for your time.
Scott

ActivePresenter Version: 7

OS: Windows 10

Notes:

Hi Scott,

Please try adding following code into ActivePresenter > Project > Properties > Event:

if (!prez.navInitEx){
    prez.navInitEx = true;
    if (prez.ui && prez.ui.onGoPrev) {
        prez.ui.onGoPrev(function() {
            prez.historyBack();
        });
    }
}

Regards,

Perfect! Exactly what I was hoping for. Thank you very much.

All the best,
Scott

Hello,

Is this code still valid? It does not seem to be working. I am on AP Pro v. 7.5.5. The previous button on the playbar is going to the previous page in the stack rather than to the last visited page (i.e., referring page). Thanks for your time.

All the best,
Scott

Hi,

Please use the below code:

var $ui = $(prez.ui);

$ui.off('ui:ap-previous');
$ui.on('ui:ap-previous', function() {
	prez.historyBack();
	return false;
});

Regards,

Perfect! Thank you very much.