LocalScroll by Ariel Flesler - how to change the offset parameter from within onBefore?

LocalScroll by Ariel Flesler - how to change the offset parameter from within onBefore?

Hi,

I cannot figure out how to change the offset parameter from within onBefore using LocalScroll plugin by Ariel Flesler.
Below is the example of functionality I'd like to achieve. Thanks for any help because I'm stuck:(

$('#menu').localScroll({

    hash

: true,
    offset
: {
        top
: -60,
        left
: 0
   
},
    onBefore
: function(e, anchor, $target) {
       
if (something) {
            offset
.top = -100;
       
}
   
}


});​